mirror of https://github.com/gorhill/uBlock.git
Safari: enable click to subscribe
This commit is contained in:
parent
400c51ccd9
commit
476fd17555
|
@ -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 New Issue