Last active
October 25, 2017 05:38
-
-
Save kyoh86/74828c01cafca5d4a4bd4b33f8af7725 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| (()=>{ | |
| const queries = [ | |
| "[data-filterable-for=assignee-filter-field]>.select-menu-item", | |
| "[data-filterable-for=review-filter-field]>.select-menu-item" | |
| ]; | |
| const assignables = [ | |
| "zoncoen", | |
| "itodai", | |
| "kyoh86", | |
| "podhmo", | |
| "bokuweb", | |
| "knknkn1162", | |
| "Quramy", | |
| "sasurau4", | |
| "syumpei", | |
| "ukyo" | |
| ]; | |
| const interval = 2000; | |
| const process = ()=>{ | |
| if (location.pathname.startsWith('/wcl48/')) { | |
| queries.forEach(query => { | |
| document.querySelectorAll(query).forEach(item => { | |
| if (item.classList.contains('selected')){ return; } | |
| let name = item.querySelector('.js-username').innerText; | |
| if (assignables.includes(name)) { return; } | |
| item.parentNode.removeChild(item); | |
| }); | |
| }) | |
| } | |
| window.setTimeout(process, interval); | |
| }; | |
| process(); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment