Skip to content

(GitHub News Feed Filter) Fix for 'Actions' tab|'Wiki' being empty after GitHub site update #127

Merged
jerone merged 3 commits intojerone:masterfrom
darkred:patch-1
May 20, 2018
Merged

(GitHub News Feed Filter) Fix for 'Actions' tab|'Wiki' being empty after GitHub site update #127
jerone merged 3 commits intojerone:masterfrom
darkred:patch-1

Conversation

@darkred
Copy link
Copy Markdown
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
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Owner

jerone commented May 20, 2018

Thanks. Confirmed working.

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

jerone commented May 20, 2018

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

@darkred
Copy link
Copy Markdown
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