Last active
June 16, 2016 14:31
-
-
Save hkdnet/f03432932893033cb814cbe8358a2e99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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