Skip to content

Instantly share code, notes, and snippets.

@hkdnet
Last active June 16, 2016 14:31
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 hkdnet/f03432932893033cb814cbe8358a2e99 to your computer and use it in GitHub Desktop.
Save hkdnet/f03432932893033cb814cbe8358a2e99 to your computer and use it in GitHub Desktop.
(function() {
let opts = document.querySelectorAll('#templates option');
let filters = [
/* 除外したいオプションの正規表現を何個か書く */
];
[...opts].forEach(e => {
if (filters.some(f => f.test(e.innerText))) {
e.parentElement.removeChild(e);
}
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment