Created
April 8, 2016 06:57
-
-
Save jsrjenkins/8af7ea18ae66b29abb4e827011726a4a to your computer and use it in GitHub Desktop.
ublock in new buffer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interactive( | |
"ublock", "Open uBlock dashboard in a new buffer", | |
function (I) { | |
var ublock_branch; | |
if ("@ublock0/content-policy;1" in Cc) { | |
ublock_branch = "ublock0"; | |
} else if ("@ublock/content-policy;1" in Cc) { | |
ublock_branch = "ublock"; | |
} else { | |
throw interactive_error("uBlock not found"); | |
} | |
load_url_in_new_buffer("chrome://"+ublock_branch+"/content/dashboard.html"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
interactive(
"ublock", "Open uBlock dashboard in a new buffer",
function (I) {
var ublock_branch;
if ("@ublock0/content-policy;1" in Cc) {
ublock_branch = "ublock0";
} else if ("@ublock/content-policy;1" in Cc) {
ublock_branch = "ublock";
} else {
throw interactive_error("uBlock not found");
}
load_url_in_new_buffer("chrome://"+ublock_branch+"/content/dashboard.html");
}