Skip to content

Instantly share code, notes, and snippets.

@noromanba
Last active October 14, 2017 14:21
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save noromanba/5872328 to your computer and use it in GitHub Desktop.
Save noromanba/5872328 to your computer and use it in GitHub Desktop.
Adblock Plus Whitelist Export
// Adblock Plus Whitelist Export. require Developer Tools Console
// @author noromanba
// @license MIT License http://nrm.mit-license.org/2013
// chrome-extension://cfhdojbkjhnklbpkdaibdccddilifddb/options.html#tab-whitelisted
var area = document.createElement('textarea');
area.id = 'rawDomainText';
//area.readOnly = true;
area.style.width = '500px';
area.style.height = '150px';
Array.prototype.slice.call(document.querySelectorAll('#excludedDomainsBox option[value]')).forEach(function (option) {
area.appendChild(document.createTextNode(option.value + '\n'));
});
document.body.appendChild(area);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment