User:Pigly3/common.js

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); } createMenuItem("Warnings Table", "https://en.wikipedia.org/wiki/Wikipedia:Template_index/User_talk_namespace")

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";    } }); createMenuItem("XTools", "https://xtools.wmcloud.org/ec/en.wikipedia.org") importScript('User:10nm/beta.js'); // Backlink: User:10nm/beta.js