aboutsummaryrefslogtreecommitdiffstats
path: root/popup.js
diff options
context:
space:
mode:
authorJez Ng2012-10-29 20:19:55 -0400
committerJez Ng2012-10-29 23:50:59 -0400
commit4a60e71d186349d82384aa4f59841d458c42213e (patch)
tree7870ef557a32b58339f891690049e8174028dc17 /popup.js
parentaeb455a577c0a20684f357ff737203b5cb419cd4 (diff)
downloadvimium-4a60e71d186349d82384aa4f59841d458c42213e.tar.bz2
Move a bunch of stuff under pages/ for tidiness.
Also correct a bug with the show / hide advanced commands button.
Diffstat (limited to 'popup.js')
-rw-r--r--popup.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/popup.js b/popup.js
deleted file mode 100644
index 2c98e6ab..00000000
--- a/popup.js
+++ /dev/null
@@ -1,20 +0,0 @@
-function onLoad() {
- document.getElementById("optionsLink").setAttribute("href", chrome.extension.getURL("options/options.html"));
- chrome.tabs.getSelected(null, function(tab) {
- // The common use case is to disable Vimium at the domain level.
- // This regexp will match "http://www.example.com/" from "http://www.example.com/path/to/page.html".
- var domain = tab.url.match(/[^\/]*\/\/[^\/]*\//) || tab.url;
- document.getElementById("popupInput").value = domain + "*";
- });
-}
-
-function onExcludeUrl(e) {
- var url = document.getElementById("popupInput").value;
- chrome.extension.getBackgroundPage().addExcludedUrl(url);
- document.getElementById("excludeConfirm").setAttribute("style", "display: inline-block");
-}
-
-document.addEventListener("DOMContentLoaded", function() {
- document.getElementById("popupButton").addEventListener("click", onExcludeUrl, false);
- onLoad();
-});