Tampermonkey / tampermonkey

Tampermonkey is the most popular userscript manager, with over 10 million users. It's available for Chrome, Microsoft Edge, Safari, Opera Next, and Firefox.
GNU General Public License v3.0
4.35k stars 428 forks source link

WebExtension API for Safari 14.0 #1031

Closed UInt2048 closed 6 hours ago

UInt2048 commented 4 years ago

Expected Behavior

TamperMonkey for Safari should support the cross-platform WebExtension API used in other browsers' TamperMonkey versions introduced in Safari 14.0 (which supports macOS 10.14+)

Actual Behavior

There is only a $1.99 version of TamperMonkey for Safari 13+ which does not use it.

Specifications

Script

Not applicable

derjanb commented 4 years ago

Yes, but I'm not sure exactly when this will happen because again it's not just about repackaging a WebExtension and you're done, but as I found out after a first brief investigation, there are a lot of modifications required to adapt a WebExtension for Safari 14.

Also the current solution supports Safari 12, 13 and 14 as well.

derjanb commented 5 days ago

Tampermonkey based on web extension API is available now...

I'm not entirely sure if there is an issue in the macOS version. I got everything working on my end. Especially GM_notification was difficult to get working in iOS, but it's working now. So I worked on renaming the Safari App based Tampermonkey version to "Tampermonkey Classic", uploaded and published it. Back at work on the WebExt version, notifications stopped working with

`"UNErrorDomain" error 1, the operation couldn't be completed"

I think this is maybe related to renaming the app, which got the notification permission long time ago, but all tried ways to make macOS forget the extension didn't work.

Could someone do me a favor and try the macOS version, and tell me if notifications via GM_notification are working for you?