Surfingkeys: Breaking changes of manifest v3(version 1.17.0)

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

  • api.vmapkey is missing.
  • api.Hints.setCharacter is missing.
  • settings.blocklistPattern is not working.
  • chrome.storage is not allowed in setting snippets.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 29
  • Comments: 22 (5 by maintainers)

Most upvoted comments

@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

1.17.1 has been released, above mentioned issue should have been resolved.

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.

As a workaround for settings.blocklistPattern, I use api.unmapAllExcept([], url_pattern) to unmap all keybindings for specific sites. For example:

api.unmapAllExcept([], /^https:\/\/(calendar|contacts|docs|drive|keep).google.com/);

For those of you with the know how, checkout commit https://github.com/brookhong/Surfingkeys/commit/f82181963aaa0cd5a2e0f68b0a5beab3f5b73c68 (1.16.1)

why there is not git tag for this…

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.

Uncaught TypeError: api.Front.showBanner is not a function

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

chrome.storage.local.set({"noPdfViewer": 1})

settings.prevLinkRegex, settings.nextLinkRegex not working

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

seems api.Normal is also missing