jerone / UserScripts

🐵 My UserScripts
https://github.com/jerone/UserScripts#readme
GNU General Public License v3.0
339 stars 39 forks source link

(Github News Feed Filter) the `Actions` list is no longer populated (`Uncaught TypeError: Array.forEach is not a function` error) #157

Open darkred opened 3 years ago

darkred commented 3 years ago

Greetings

It's about the 'Github News Feed Filter' script.

I've just noticed that the Actions list is no longer populated, I'm getting this error twice instead:

Uncaught TypeError: Array.forEach is not a function     line 476
    at HTMLAnchorElement.filterTabInnerClick 

This must have happened due to the recent GitHub HTML changes.

By the way, I've noticed that, clicking to switch to either the Repositories or Users tabs causes the sidebar to become too thin in width. (this is an irrelevant issue that's been happening a long time now)

Here is a screen capture (TM in Chrome) to see what I mean:

screen capture ![](https://user-images.githubusercontent.com/723651/113492544-ba0e0c00-94e0-11eb-9ded-df61c650a817.gif)

Tested v8.2.8 with fresh profile of both Chrome 89/Firefox 87 using latest Tampermonkey beta 4.12.6132/Violentmonkey beta 2.12.11.2 .

I tried, but can't seem to be able to fix it myself.

Thank you

jerone commented 3 years ago

Hi @darkred, is this still an issue?

Because it's working for me, even after loading more news...

darkred commented 3 years ago

Thank you for responding.

Yes, it is still occurs.

I found what's happening: if you install the script in a fresh Chrome/Firefox profile with TM/VM, it doesn't work at all (=the Actions tab is empty + switching to the other two makes the sidebar thin). If you restore it -in TM only- using the following TM zip backup (just this 1 script) from my everyday Chrome profile, the script works partially (=the Actions tab works ok, but switching to either of the other two tabs, makes the sidebar thin)


To reproduce yourself:

darkred commented 3 years ago

To summarize:

Note: in the latter case, if I enable the 'Refined GitHub' extension, then, although the Actions list gets populated, clicking on any filter hides ALL entries, matching or not.

darkred commented 2 years ago

@jerone The script's basic functionality is now built-in (currently beta), see https://github.blog/changelog/2022-06-14-updates-to-github-feed-public-beta/

Screenshot: ![](https://i0.wp.com/user-images.githubusercontent.com/16675781/173444248-880ada57-d314-40e3-a8e7-bc378ac46f7e.png)

Your script is much more powerful of course, and offers various custom filtering options, but maybe it's better to just deprecate/archive the script? There have been so many changes in the news feed, incl. that it's even now split to two: "Following" and "For Your". I think it might not be worth the trouble to try to update the script for the new layout.