Skip to content

Instantly share code, notes, and snippets.

@kyoh86
Last active October 25, 2017 05:38
Show Gist options
  • Save kyoh86/74828c01cafca5d4a4bd4b33f8af7725 to your computer and use it in GitHub Desktop.
Save kyoh86/74828c01cafca5d4a4bd4b33f8af7725 to your computer and use it in GitHub Desktop.
(()=>{
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