refined-hacker-news icon indicating copy to clipboard operation
refined-hacker-news copied to clipboard

[Firefox] Extension is broken (the loading wheel keeps spinning)

Open chadius-maximus opened this issue 4 years ago • 14 comments

Has been unable to use the extension for a while, tried disabling/re-enabling, didn't help. Running the most recent version (21.4.20).

I checked the console, and this is the error I saw.

image

If I try applying dark mode theme in the extension settings, the dark mode applies properly, but the extension is still broken overall, and none of the actual functionality is present. I checked the dark mode settings just while i was trying to identify the issue. I switched back to non-dark mode. The extension has been broken before I tried the dark mode, and it is still not working for me even afterwards.

What you see below is what I mean when I mention the loading wheel spinning:

image

chadius-maximus avatar Jun 08 '21 21:06 chadius-maximus

Hi @olfilato, thanks for opening the issue.

I'm unable to reproduce the issue on Firefox 89.0 (Linux Ubuntu 20.04). Could you give me your browser/system details?

Other than that, it would be awesome if you could dig a bit deeper into the console's error An unexpected error occurred:

  • Follow the file on linked on the right side of the error message
  • pretty print the display (the button is in the shape of two curly braces { } on the bottom bar)
  • send me the text/screenshot of the codeblock.

Otherwise, could you enable the extension to run on private mode and test it out there (preferable with other extensions disabled)?

Thanks! :)

plibither8 avatar Jun 09 '21 06:06 plibither8

Hi @plibither8 .

I tried digging deeper into the console error before opening the issue, but it just says undefined there instead of the actual path, and clicking on it does nothing (as opposed to taking me to the source file, which is what usually happens when it isn't undefined). My bad for cropping the original screenshot of the console error in the OP, here is the full version:

image

chadius-maximus avatar Jun 10 '21 00:06 chadius-maximus

I have also just tried private tab with every single extension disabled except Refined HN while not logged in. Exact same thing happened there, the extension is still broken for me. If it helps, my FF version is 89.0b12.

chadius-maximus avatar Jun 10 '21 00:06 chadius-maximus

I get the same(?) - spinning wheel with: TypeError: actualTopBar is undefined printed in the console.

FF: 90.0 refined-hackers-news: 21.4.20

I also have hn-friends active

      if (actualTopBar.children.length === 1 && actualTopBar.children[0].tagName === "IMG") {
        actualTopBar = topBarElements[1];
      }

olejorgenb avatar Aug 12 '21 17:08 olejorgenb

@olejorgenb Have you tried disabling hn-friends and checking if this fixes the issue?

@olfilato do you still face this issue?

plibither8 avatar Aug 12 '21 18:08 plibither8

Tried now - disabling hn-friends does not help. But I noticed that the error only happens if I open the comment-page from the front page. If I refresh the comment-page the loading completes.

olejorgenb avatar Aug 12 '21 19:08 olejorgenb

I have the same issue.

FF109.6 refined-hacker-news 22.12.17 ff-refined-hn

vimode avatar Feb 07 '23 18:02 vimode

I haven't noticed a loading circle like that, but on Firefox v109.0 I have been unable to navigate the front page with keyboard shortcuts like I used to be able to. The console displays the same itemlist is null message posted above.

ian-h-chamberlain avatar Feb 15 '23 21:02 ian-h-chamberlain

I'm seeing the forever-spinning wheel in Firefox 112.0.2 (64-bit) on Ubuntu 22.04. Console errors are:

image

partofthething avatar May 07 '23 05:05 partofthething

I get this too

image

Kellett avatar Jun 21 '23 09:06 Kellett

It's been like this for well over a year for me. Doesn't matter which version of Firefox, which other extensions, etc... Just a perpetual spinning wheel on every HN page.

I see this error:

TypeError: subtext_row.getElementsByClassName is not a function hackernews.js:8:33

davidjade avatar Sep 13 '23 00:09 davidjade

I too experience this same problem in Version 22.12.17 with up to date (v 123.0) FireFox :

image

Is there anything I can additionally report that may help sleuth the cause of this issue?

malcook avatar Mar 01 '24 20:03 malcook

Same here. It's been like this for years now.

davidjade avatar Mar 01 '24 20:03 davidjade

Since Refined Hacker News looks like it is unmaintained, I am taking the liberty of linking to my own extension: ViHN, in case it can be useful to some people who encountered this issue like I did before writing ViHN.

It is not a fork of Refined Hacker News, because I wanted to make sure it would not incur any perceptible delay when loading the page. I was mostly interested in keyboard navigation, so it does not support all the features of Refined Hacker News. For instance, ViHN does not do any additional request when the page is loaded, like Refined Hacker News does to find the user's favorite comments, so it does not add the “favorite“ and “flag” links to every comment. However, it does have many key bindings, so some people might find it useful.

I have great respect for the work done on Refined Hacker News, and it served as an inspiration for ViHN. I hope ViHN can be a useful solution for the community.

qsantos avatar Mar 02 '24 08:03 qsantos