mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Safari: enable click to subscribe
This commit is contained in:
parent
400c51ccd9
commit
476fd17555
1 changed files with 11 additions and 0 deletions
|
@ -69,6 +69,17 @@
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
safari.extension.addContentScriptFromURL(vAPI.getURL("js/subscriber.js"), [
|
||||||
|
"https://*.adblockplus.org/*",
|
||||||
|
"https://*.adblockplus.me/*",
|
||||||
|
"https://www.fanboy.co.nz/*",
|
||||||
|
"http://*.adblockplus.org/*",
|
||||||
|
"http://*.adblockplus.me/*",
|
||||||
|
"http://www.fanboy.co.nz/*"
|
||||||
|
], [], true);
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
safari.extension.settings.addEventListener('change', function(e) {
|
safari.extension.settings.addEventListener('change', function(e) {
|
||||||
if(e.key === 'open_prefs') {
|
if(e.key === 'open_prefs') {
|
||||||
vAPI.tabs.open({
|
vAPI.tabs.open({
|
||||||
|
|
Loading…
Reference in a new issue