User:Ditto Duck Penguin/global.js

window.wdscontribs = true;

function welpme{ alert('Hello World'); } ContribToggle(welpme);

function ContribRC{ var $temp = $(' '); var href = location.href.replace(/#[\S]*/, ''); $temp.load(href + ' #mw-content-text', function {			var $newContent = $temp.children('#mw-content-text');			if ($newContent.length) {				$('#mw-content-text').replaceWith($newContent);				mw.util.$content = $newContent;			}		}); $temp.remove; }

var wdscontrib = window.wdscontribs || false; var contribRefresh = window.contribRefresh || 1000;

$(function { if(wgCanonicalSpecialPageName === "Contributions")   {        if (wdscontrib === true){ $(".UserProfileMasthead .masthead-avatar .avatar").click(function  { $("#contentSub").append(' Start RC | '); $("#contentSub").append(' Stop RC '); });       } else {               $( ' Start RC  ' ).insertAfter('.wds-global-navigation__search:first');       $( ' Stop RC  ' ).insertAfter('.wds-global-navigation__search:first');       } } });

function ContribToggle(Data){ $('.ContribRC').click(function{       setTimeout(this.Data,1000);    }); }