User:KurwaAntics/common.js

if ( wgNamespaceNumber == 8 ) { $(".header-title h2").prepend('< Back | '); }

if ( wgPageName.indexOf("/Wikimarks") >= 0 ) { $(".header-title h2").append(' | Wikimarks'); }

highlight = { selectAll: true, staff: '#9C27B0', codeeditor: '#EF6C00', users: { 'Cqm': '#EF6C00', } };

importArticles({   type: "script",    articles: [        "HighlightUsers/code.js"    ] });

$('.page-List_of_JavaScript_enhancements #mw-content-text').prepend('');

function filterFunction { var input, filter, ul, li, a, i;   input = document.getElementById("searchJS"); filter = input.value.toUpperCase; div = document.getElementById("mw-content-text"); a = div.getElementsByTagName("li"); for (i = 0; i < a.length; i++) { if (a[i].innerHTML.toUpperCase.indexOf(filter) > -1) { a[i].style.display = ""; } else { a[i].style.display = "none"; }   } }