louisbarclay / nudge

Nudge makes the internet less addictive.
https://nudgeware.io
MIT License
143 stars 9 forks source link

Extension from Chrome Store not working #125

Closed berezovskyi closed 2 years ago

berezovskyi commented 2 years ago

On the setup screen on a newly installed Chrome, I try to add a site to the list but get a JS exception:

image

Do I understand correctly that the extension is no longer maintained due to https://news.ycombinator.com/item?id=28788821?

chewy74 commented 2 years ago

i get a 404 error trying to install from the chrome store

BradKML commented 2 years ago

Same goes for me regarding the isse of @berezovskyi, but for Edge and Brave. The main issue is that the variable WAS undefined, therefore cannot use the function

th0rgall commented 2 years ago

As @BrandonKMLee says, this is likely a duplicate issue to https://github.com/louisbarclay/nudge/issues/121.

@chewy74 the 404 is expected, it's very likely the response of the deprecated Google API. The latest development version (master) fixed this, but it doesn't seem to have been included in the latest October 12 Chrome store update. Try with your own Google API Key, see my comment here https://github.com/louisbarclay/nudge/issues/124#issuecomment-947533073, and then check if that 404 still happens.

To repeat my comment from there: with the latest development version on Chrome (loaded as unpacked extension), I'm not getting this issue. I can open the settings, add sites, and the extension is functional.

Do I understand correctly that the extension is no longer maintained due to https://news.ycombinator.com/item?id=28788821?

I can't speak for Louis, but my impression is that like many developers writing open source software for free, he's now mostly busy with something else. I don't think the Unfollow Everything ban had direct legal implications on Nudge, but I might be wrong.

BradKML commented 2 years ago

How does one compile the app into something that can be plugged in directly from a folder?

th0rgall commented 2 years ago

@BrandonKMLee The extension should already load straight from the precompiled HTML/CSS included in git:

  1. Clone the repo
  2. Load the /extension folder as an unpacked extension

If you need to change something to the HTML/CSS, you need to recompile it with yarn. If you want to live-load updated hidee definitions, you need to run some node scripts and follow other steps. Please read the instructions. It's all documented there.

I'm not aware how Brave works exactly with loading unpacked extensions, but from this it seems to be working just like Chrome.

BradKML commented 2 years ago

Thanks, also I am now eyeing on https://github.com/habitlab/habitlab and https://github.com/IvarssonAndreas/mindful-internet-use

louisbarclay commented 2 years ago

I have shipped a new version to the Chrome Web Store which includes the latest development version and should therefore fix this!