Safari: enable click to subscribe

This commit is contained in:
Chris 2015-03-09 13:56:05 -06:00
parent 400c51ccd9
commit 476fd17555
1 changed files with 11 additions and 0 deletions

View File

@ -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({