Skip to content

Instantly share code, notes, and snippets.

@jsrjenkins
Created April 8, 2016 06:57
Show Gist options
  • Save jsrjenkins/8af7ea18ae66b29abb4e827011726a4a to your computer and use it in GitHub Desktop.
Save jsrjenkins/8af7ea18ae66b29abb4e827011726a4a to your computer and use it in GitHub Desktop.
ublock in new buffer
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");
}
@jsrjenkins
Copy link
Author

You can then open the dashboard with a simple M-x ublock

@431264
Copy link

431264 commented Sep 19, 2017

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");
}

@431264
Copy link

431264 commented Sep 19, 2017

M-x unblooj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment