diff options
| author | mrmr1993 | 2017-04-17 17:36:04 +0100 |
|---|---|---|
| committer | mrmr1993 | 2017-04-17 17:36:04 +0100 |
| commit | 93a07e4c4ccc64b5939adbf71a12bfad403845ad (patch) | |
| tree | 62f704fa766722a44332fb4a0e630b120e4038df /pages/content_script_loader.coffee | |
| parent | 42025fd9ceb7042e80b09744fdcdd47d447dec2f (diff) | |
| download | vimium-93a07e4c4ccc64b5939adbf71a12bfad403845ad.tar.bz2 | |
Remove content_script_loader and all references to it
Diffstat (limited to 'pages/content_script_loader.coffee')
| -rw-r--r-- | pages/content_script_loader.coffee | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/pages/content_script_loader.coffee b/pages/content_script_loader.coffee deleted file mode 100644 index 5058bb7b..00000000 --- a/pages/content_script_loader.coffee +++ /dev/null @@ -1,28 +0,0 @@ -injectContentScripts = -> - manifest = chrome.runtime.getManifest() - content_scripts = manifest.content_scripts - - insertLocation = document.head.firstChild - - for scriptInfo in content_scripts - continue if scriptInfo.matches.indexOf("<all_urls>") == -1 - - if scriptInfo.js - for script in scriptInfo.js - scriptElement = document.createElement "script" - scriptElement.type = "text/javascript" - scriptElement.async = false # Don't load out of order! - scriptElement.src = chrome.runtime.getURL script - - insertLocation.parentElement.insertBefore scriptElement, insertLocation - - if scriptInfo.css - for style in scriptInfo.css - styleElement = document.createElement "link" - styleElement.rel = "stylesheet" - styleElement.type = "text/css" - styleElement.href = chrome.runtime.getURL style - - insertLocation.parentElement.insertBefore styleElement, insertLocation - -injectContentScripts() |
