//See instructions for installation at [[User:Venkat_TL/ColourContrib#Installation]]// This script color-codes the user contributions page so that pages you've edited last are sharply distinguished from pages where another editor was the last to edit the page.//This tool is a fork of [[User:Ais523/topcontrib.js]] with lighter colours. //<pre><nowiki>$(document).ready(function () { if(mw.config.get('wgCanonicalSpecialPageName') === 'Contributions' &&location.href.indexOf("&ais523")==-1&&location.href.indexOf("?ais523")==-1) // the ais523 in the line above is meant to be ais523, not your username; it's // to avoid a clash with a couple of other scripts I've written. Feel free to // expand it to avoid clashes with other contribs-manipulating scripts, though. {var hash = { };$('ul.mw-contributions-list > li').each(function(index, item) {var $a = $(item).find('a.mw-contributions-title');var href = $a.attr('href');// get the page titlevar match = $a.hasClass('mw-redirect') ? href.match(/\/w\/index.php\?title=([^&]*)&/) : href.match(/\/wiki\/([^"]*)/);var title = match[1];// determine background colorvar topspanfound = $(item).find('span.mw-uctop').length > 0;var bg = topspanfound ? "#e6e6ff" : "#ffe6e6";if (hash[title] !== undefined) bg = hash[title] == "#e6e6ff" ? "#e6ffe6" : "#ffe6ff"; elsehash[title] = bg;// set the background colorvar $span = $('<span></span>');$span.css('background-color', bg);$span.append($(item).contents());$(item).append($span);}); }});//</nowiki></pre>//[[Category:Wikipedia scripts]]
🔥 Top keywords: Main PageSpecial:SearchPage 3Wikipedia:Featured picturesHouse of the DragonUEFA Euro 2024Bryson DeChambeauJuneteenthInside Out 2Eid al-AdhaCleopatraDeaths in 2024Merrily We Roll Along (musical)Jonathan GroffJude Bellingham.xxx77th Tony AwardsBridgertonGary PlauchéKylian MbappéDaniel RadcliffeUEFA European Championship2024 ICC Men's T20 World CupUnit 731The Boys (TV series)Rory McIlroyN'Golo KantéUEFA Euro 2020YouTubeRomelu LukakuOpinion polling for the 2024 United Kingdom general electionThe Boys season 4Romania national football teamNicola CoughlanStereophonic (play)Gene WilderErin DarkeAntoine GriezmannProject 2025