-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(GitHub News Feed Filter) Fix for 'Actions' tab|'Wiki' being empty after GitHub site update #127
Conversation
Fix for 'Actions' tab|'Wiki' being empty after GitHub site update (additional re-fix for #124)
Fix for missing some entries in the 'Repositories' tab
@@ -325,7 +325,7 @@ | |||
Array.prototype.map.call(newsContainer.querySelectorAll(':scope > div > .body'), function(alert) { | |||
return alert.parentNode; | |||
}).forEach(function(alert) { | |||
var alertRepo = alert.querySelector(':scope .flex-items-baseline > div > [data-ga-click*="target:repo"]'); | |||
var alertRepo = alert.querySelector('[data-ga-click*="target:repo"]'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to use the :scope
selector
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But, when using :scope .flex-items-baseline > div > [data-ga-click*="target:repo"]
then there are some entries missing in the 'Repositories' tab, i.e. the global counter might be e.g. 30, but only 27 entries are listed, as I've wrote here.
Do you mean :scope [data-ga-click*="target:repo"]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean
:scope [data-ga-click*="target:repo"]
.
Yes (haven't tested it).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, added it. It works ok as well.
Use the :scope selector
Thanks. Confirmed working. |
🎬 Released as 8.2.1 with another 🐛 fix missing created repo actions. |
Thank you for everything. |
Fix for 'Actions' tab|'Wiki' being empty after GitHub site update (additional re-fix for #124)
Note: I changed textContent with innerText, because it contains linebreaks and spaces in HTML (i.e. with textContent).