User:Feeglgeef/common.js

importScript('User:10nm/beta.js'); importScript("User:EpochFail/ArticleQuality.js"); importScript("User:Esquivalience/mathjax.js"); importScript("User:Thespaceface/MetricFirst.js"); importScript("User:Evad37/GeoHack_replacement_script.js"); importStylesheet('User:EpochFail/no_banners.css');

ghrs_mapprovider = "http://maps.google.com/maps?ll={latdegdec},{londegdec}&spn={span},{span}&q={latdegdec},{londegdec}"; var links = document.querySelectorAll('a'); links.forEach(function (link) {   if (link.href && link.href.includes("/wiki/Special:RecentChanges")) {        link.href = "/wiki/Special:RecentChanges?goodfaith=likelybad%3Bverylikelybad&hidebots=1&hidecategorization=1&hideWikibase=1&tagfilter=mw-reverted&inverttags=1&limit=50&days=7&goodfaith__likelybad_color=c3&goodfaith__verylikelybad_color=c5&urlversion=2";    } }); var idsToRemove = ["n-contents", "n-aboutsite", "n-contactpage", "n-sitesupport", "n-help", "n-introduction", "n-portal"]; idsToRemove.forEach(function (id) {   var elementToRemove = document.getElementById(id);    if (elementToRemove) {      elementToRemove.parentNode.removeChild(elementToRemove);    } }); var elements = document.querySelectorAll('[title="Change your settings to go back to the old look of the skin (legacy Vector)"]')[0].parentElement.parentElement.parentElement.remove; var customDiv = document.createElement('div'); customDiv.className = 'vector-menu-heading'; customDiv.innerHTML = 'Custom'; var targetContainer = document.getElementById('p-interaction').children[1].children[0]; targetContainer.appendChild(customDiv); function createMenuItem(name, url) { var listItem = document.createElement('li'); listItem.className = 'mw-list-item'; listItem.appendChild(document.createElement('a')).innerHTML = name; listItem.firstChild.href = url; document.getElementById('p-interaction').children[1].children[0].appendChild(listItem); }

//Menu Items createMenuItem('Warnings table', 'https://en.wikipedia.org/wiki/Wikipedia:Template_index/User_talk_namespace') createMenuItem('XTools', '//xtools.wmcloud.org/ec/en.wikipedia.org')

//Dark Mode window.wpDarkModeAutoToggle = true; mw.loader.load( 'https://en.wikipedia.org/w/load.php?modules=ext.gadget.dark-mode-toggle&only=scripts' ); importStylesheet('User:Feeglgeef/superdark.css')