brookhong / Surfingkeys

Map your keys for web surfing, expand your browser with javascript and keyboard.
https://chrome.google.com/webstore/detail/surfingkeys/gfbliohnnapiefjpjlpjnehglfpaknnc
MIT License
5.25k stars 476 forks source link

Breaking changes of manifest v3(version 1.17.0) #2159

Open brookhong opened 5 days ago

brookhong commented 5 days ago

Hi All,

On September 16, 2024, 1.17.0 was released(only for Chrome now, from branch mv3) to address manifest v3 upgrade, otherwise the extension would be taken down from chrome web store.

For now, please turn on Developer mode from chrome://extensions/ after you installed/upgraded to 1.17.0, due to following reason

The 'userScripts' API is only available for users in developer mode.

See offical docs from Google.

Then restart your browser, most features should work. And here are some known issues

lost22git commented 5 days ago

please turn on Developer mode

It's working fine for me, thanks.

lcaturelli commented 5 days ago

Enabling developer mode, manages to load and save settings from URL successfully.

However, settings fails to apply (extension works with the default configuration). In console it shows the following errors:

image

I confirm that, if enabled/disable "developer options", it is necessary to restart the Browser to apply the change.

Vivaldi 6.9.3447.37 (Stable channel) (32 bits).

I am available if I can help with tests.

joshuali925 commented 5 days ago

seems api.Normal is also missing

nekowasabi commented 5 days ago

Same error by saving advanced mode setting.

CleanShot 2024-09-19 at 09 30 46@2x

kings2u commented 4 days ago

Thank you for addressing this so quickly. FYI, this line in my config also causes an error:

chrome.storage.local.set({"noPdfViewer": 1})
daanzu commented 4 days ago

[SurfingKeys] Error found in settings: TypeError: Hints.setNumeric is not a function

agguser commented 3 days ago
Uncaught TypeError: api.Front.showBanner is not a function
voidpainter commented 3 days ago

settings.prevLinkRegex, settings.nextLinkRegex not working

wthueb commented 3 days ago

For those of you with the know how, checkout commit f82181963 (1.16.1) and build it from source yourself, and load the unpacked extension. The APIs still work, the new update just had to remove them to not get removed from the Chrome Web Store.

This won't work forever as Manifest v2 will eventually be unsupported entirely, but for now it allows Surfingkeys to be usable on Chrome for me.

Kiraalla commented 2 days ago

When will it be updated to [version 1.17.1]

desgua commented 2 days ago

Can someone guide me on how to build from source? I have done (in Linux terminal):

git clone https://github.com/brookhong/Surfingkeys.git
cd Surfingkeys
git checkout f82181963

Then I go to chrome://extensions/ but when I try to load unpacked I get an error "Failed to load extension File ~/Downloads/surfingkeys/Surfingkeys/src Error Required value 'version' is missing or invalid. It must be between 1-4 dot-separated integers each between 0 and 65536"

psych3r commented 2 days ago

@desgua You have to build the extension first. Run the following commands in the extension directory:

npm install
browser=chrome npm run build:prod

Then load unpacked dist/production/chrome

desgua commented 1 day ago

@psych3r Thank you so much! <3