Skip to content
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

Merged
merged 3 commits into from
May 20, 2018

Conversation

darkred
Copy link
Contributor

@darkred darkred commented May 20, 2018

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).

Fix for 'Actions' tab|'Wiki' being empty after GitHub site update (additional re-fix for #124)
@jerone jerone self-assigned this May 20, 2018
@darkred darkred changed the title Update Github_News_Feed_Filter.user.js (GitHub News Feed Filter) Fix for 'Actions' tab|'Wiki' being empty after GitHub site update May 20, 2018
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"]');
Copy link
Owner

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

Copy link
Contributor Author

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"] ?

Copy link
Owner

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).

Copy link
Contributor Author

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.

@jerone
Copy link
Owner

jerone commented May 20, 2018

Thanks. Confirmed working.

@jerone jerone merged commit 1e07dbd into jerone:master May 20, 2018
@jerone
Copy link
Owner

jerone commented May 20, 2018

🎬 Released as 8.2.1 with another 🐛 fix missing created repo actions.

@darkred
Copy link
Contributor Author

darkred commented May 20, 2018

Thank you for everything.

@darkred darkred deleted the patch-1 branch May 27, 2018 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants