Comments (17)
Yes the news-feed-filter is still shown for me.
Great.
And also, with these two line changes combined, the issue no longer occurs: I've tried multiple (a lot) times and I can't recreate it anymore 👍
Even greater.
What extension/userscript do you use for that feature?
I used some UserScript before, but then I found the more frequently updated WebExtension, Notifications Preview for GitHub Build Status.
I'll release a new version of the the script soon.
from userscripts.
Finally had some time to push the fix. I hope everything continues to work.
from userscripts.
Hi @darkred. Currently I'm beta testing the new personal dashboard on the homepage. This will replace the current news feed on the homepage. That's why I'm not using this userscript anymore and probably won't make any updates to the userscript until GitHub releases the new dashboard or disables the beta.
I have not checked the source yet, but this userscript might still be relevant on the new dashboard.
PR is always welcome!
from userscripts.
Hi @jerone.
Yes, I'm also using the new dashboard layout, too.
And yes, the script still works fine on the new dashboard: screenshot.
It's just this issue that I describe occurs.
FYI, apart from adding
// @include https://github.com/*
I've also tried enclosing your code as follows, like I've done with the GitHub script I have,
but unfortunately it didn't help:
(function () {
function init() {
// ...
}
init();
document.addEventListener('pjax:end', init); // for the History API
})();
Kindly /cc @Mottie in case he'd like to help here - I think that his great, detailed HowTo (especially his mutations.js
library) would be the perfect solution to this.
(Unfortunately it seems too advanced for me).
from userscripts.
Yes, I'm also using the new dashboard layout, too.
Hmmm, that's weird, are you sure? Because I couldn't even get the filter to show up on the new dashboard.
To make the filter show up, change the following line...
sidebar.insertBefore(wrapper, sidebar.firstChild);
...to...
sidebar.insertBefore(wrapper, sidebar.querySelector(":scope > *:not(details)"));
It appears that all features still work.
I also can't reproduce the issue you are describing, with above steps.
from userscripts.
Hmmm, that's weird, are you sure? Because I couldn't even get the filter to show up on the new dashboard.
Yes, I'm sure:
the previous screenshot I gave you is from Chrome 69 with only TM 4.7 stable(and uBO) and the script.
And here is another screenshot, from a fresh Firefox 62 profile with only TM 4.8.5850 beta and the script: screenshot_2.
Notice in both screenshots, the "You are in the public Beta of the dashboard" text to the bottom left, and that the filters show up ok.
Also please note that in both cases the script is as it (8.2.4), i.e. without your suggested modification to line 498.
I also can't reproduce the issue you are describing, with above steps. 😞
The issue that I describe is occurring frequently but not every single time, i.e. not consistently.
Here is a video capture (1:16, ~5 MB, .wmv) with Chrome 69 and TM 4.7 stable (the same thing happens with Firefox and TM beta) : Video_2018-09-26_001858.zip [1] :
I start with https://github.com/ and click in terms the links: "Pull Requests", "Issues", "Marketplace", "Explore" and (my avatar) > 'Your Profile'", and every time I switch back to https://github.com/ :
the issue I describe occurs at: 0:27, 1:05 and 1:10 of the video, i.e. 3 times in total.
[1] Please download and unzip it - unfortunately uploading .wmv files is not supported by GitHub. Sorry for the inconvenience.
from userscripts.
(I've made some corrections to my last comment to improve the wording).
from userscripts.
When I have time I'll have a look.
One thing I did notice between you and me is the difference on the left sidebar; I've got an account switcher, which you doesn't seem to have...
(I have Refined GitHub 18.9.19.1710 disabled at the moment I made the screenshot).
from userscripts.
When I have time I'll have a look.
Thank you! 🙂
One thing I did notice between you and me is the difference on the left sidebar; I've got an account switcher, which you doesn't seem to have...
Yes, that's very strange. I also use Refined GitHub (as well as Octotree, OctoLinker, Octobox and various styles in Stylus) but I have all these extensions disabled during the above tests, and I don't have such an account switch in any case, with any browser (Chrome, FF, even Edge).
from userscripts.
It's because I'm part of a few organizations: https://github.com/jerone
Not related to your real issue, but if you make the code change I described above, does the news-feed-filter still show-up for you?
from userscripts.
Yes, unfortunately it still shows up.
from userscripts.
Yes, unfortunately it still shows up.
No no, that's good news
Now I only need to reproduce your issue...
from userscripts.
No no, that's good news 😄
Yes, sorry, I misread it as "Does the issue still occur?"
My answer to your question is: yes, the news-feed-filter shows on accounts with and without organizations.
from userscripts.
Ah ok :)
I'm at work right now, and above change doesn't appear to be enough. I need to change the following to make it work:
// GitHub homepage or profile activity tab.
- var sidebar = document.querySelector('.dashboard-sidebar') || document.querySelector('.profilecols > .column:first-child');
+ var sidebar = document.querySelector('.dashboard-sidebar:not(.is-placeholder)') || document.querySelector('.profilecols > .column:first-child');
var wrapper = document.createElement(filterElement);
wrapper.classList.add('boxed-group', 'flush', 'user-repos');
- sidebar.insertBefore(wrapper, sidebar.firstChild);
+ sidebar.insertBefore(wrapper, sidebar.querySelector(":scope > *:not(details)"));
var headerAction = document.createElement('div');
I'll confirm that it works at home also, can you confirm if the news-feed-filter still is shown for you too...
from userscripts.
I'll confirm that it works at home also, can you confirm if the news-feed-filter still is shown for you too...
Yes the news-feed-filter is still shown for me.
And also, with these two line changes combined, the issue no longer occurs: I've tried multiple (a lot) times and I can't recreate it anymore
Thanks a lot!
from userscripts.
Something that caught my attention: I noticed in your screenshot
that there's a blue counter badge (1
) over the unread notifications icon:
What extension/userscript do you use for that feature?
from userscripts.
Yes, everything is fine, thank you
from userscripts.
Related Issues (20)
- (GitHub Reply Comments) doesn't work with PR review comments HOT 3
- (GitHub News Feed Filter) The script's tab titles (Actions, Repositories, Users) appear tiled vertically after today's GitHub site update HOT 2
- (Github Reply Comments) Doesn't work on commit view HOT 4
- UTF8 byte-order-mark at beginning of files HOT 1
- (Darts Data Enhancer) Selector broken HOT 1
- (Multiple Windows Live IDs) Site has gone trough changes HOT 1
- (Reply Comments) commented on [null] HOT 10
- (GitHub Reply Comments) doesn't handle embedded references to code HOT 3
- (Github Pull Request From Link) Wrong url on forks where another repo name is choosen HOT 2
- Is this fully broken now? Some features I miss. HOT 1
- Github_Comment_Enhancer still up on openuserjs.org HOT 1
- Seems like the reply script got broken recently HOT 1
- Breaks with GitHub usernames containing spaces HOT 2
- (Reply Comments) Doesn't enable the Comment button HOT 7
- Support new repository page HOT 1
- Error in Github Image Viewer
- (Github News Feed Filter) the `Actions` list is no longer populated (`Uncaught TypeError: Array.forEach is not a function` error) HOT 4
- Github Pages Linker no longer works HOT 5
- Confusing licensing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from userscripts.