Content deleted Content added
Polygnotus (talk | contribs) No edit summary Tag: Reverted |
Polygnotus (talk | contribs) m Polygnotus moved page User:Polygnotus/namespace.js to User:Polygnotus/Scripts/NamespaceFilter.js |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1:
// Very janky and not intended for real world use, does not make API calls just filters whatever is there on the page (so use limit=5000).
// I have requested something better:
// https://meta.wikimedia.org/wiki/Community_Wishlist/Wishes/Add_Namespace_filter_to_all_Special:_pages_(where_applicable)
(function() {
Line 34 ⟶ 28:
margin-right: 10px;
}
.article-name-only .external
display: none;
}
`;
Line 149 ⟶ 137:
document.querySelector('ol.special').classList.toggle('article-name-only', isChecked);
localStorage.setItem(ARTICLE_NAMES_ONLY_KEY, isChecked);
}
Line 181 ⟶ 154:
addStyles();
createFilterUI(namespaces);
filterResults(); // Apply filters on initial load
}
|