Skip to content

Instantly share code, notes, and snippets.

@ComFreek
Created March 31, 2014 11:02
Show Gist options
  • Save ComFreek/9889920 to your computer and use it in GitHub Desktop.
Save ComFreek/9889920 to your computer and use it in GitHub Desktop.
Retrieve all StackExchange domains!
/*
* Must be run on http://stackexchange.com/sites?view=list#traffic
* Your popup blocker must be deactivated.
*/
var links = []; $(".lv-info a").each(function () {
links.push(this.href);
});
var str = links.join("\n");
window.open("data:text/plain;base64," + btoa(str), "Links");
/*
* Must be run on http://stackexchange.com/sites?view=list#traffic
* Your popup blocker must be deactivated.
*/
var links = [];
$(".lv-info a").each(function () {
if(this.host.indexOf("stackexchange.com") === -1) {
links.push(this.href);
}
});
var str = links.join("\n");
window.open("data:text/plain;base64," + btoa(str), "Links");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment