Skip to content

Instantly share code, notes, and snippets.

@geeknees
Forked from noromanba/abp-whitelist-export.js
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save geeknees/7670ae11c5deab52faf7 to your computer and use it in GitHub Desktop.
Save geeknees/7670ae11c5deab52faf7 to your computer and use it in GitHub Desktop.
// 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