Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Remove Safari sitepatch stuff (closes #633)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Feb 4, 2015
1 parent c7edec0 commit 113b7dd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 132 deletions.
111 changes: 0 additions & 111 deletions platform/safari/sitepatch-safari.js

This file was deleted.

14 changes: 0 additions & 14 deletions platform/safari/vapi-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,6 @@

/******************************************************************************/

// addContentScriptFromURL allows whitelisting,
// so load sitepaching this way, instead of adding it to the Info.plist

safari.extension.addContentScriptFromURL(
safari.extension.baseURI + 'js/sitepatch-safari.js', [
'http://www.youtube.com/*',
'https://www.youtube.com/*',
'http://www.youtube-nocookie.com/*',
'https://www.youtube-nocookie.com/*'
]
);

/******************************************************************************/

safari.extension.settings.addEventListener('change', function(e) {
if(e.key === 'open_prefs') {
vAPI.tabs.open({
Expand Down
7 changes: 0 additions & 7 deletions platform/safari/vapi-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,6 @@ onpopstate();\
return r;\
};";
}
var whiteListed = safari.self.tab.canLoad(beforeLoadEvent, {
type: "isWhiteListed",
url: location.href
});
if(vAPI.sitePatch && !whiteListed) {
tmpScript += "(" + vAPI.sitePatch + ")();";
}
tmpScript += "})();";
tmpJS.textContent = tmpScript;
document.documentElement.removeChild(document.documentElement.appendChild(tmpJS));
Expand Down

0 comments on commit 113b7dd

Please sign in to comment.