User:InfoboxBot/common.js

if (mw.config.get('wgCanonicalSpecialPageName') === "Watchlist") { /*function theOnesWhoStartTheFires { console.log("[wikipage.content was fired]"); }	mw.hook('wikipage.content').add(theOnesWhoStartTheFires);*/ // I'm testing this on my bot account now to try to narrow down what exactly is causing the double-firing. function wpcretbase(content) { console.log("wpcretbase(content): [wikipage.content was fired]"); if ($(content).is('#mw-content-text')) { console.log('==> wpcretbase matched #mw-content-text'); }		if ($(content).is('#mw-content-text > div.mw-changeslist.oo-ui-widget.oo-ui-widget-enabled.mw-rcfilters-ui-changesListWrapperWidget.mw-rcfilters-ui-changesListWrapperWidget-highlighted')) { console.log('==> wpcretbase matched #mw-content-text > div.mw-changeslist.oo-ui-widget.oo-ui-widget-enabled.mw-rcfilters-ui-changesListWrapperWidget.mw-rcfilters-ui-changesListWrapperWidget-highlighted'); }		if ($(content).is('div.mw-changeslist.oo-ui-widget.oo-ui-widget-enabled.mw-rcfilters-ui-changesListWrapperWidget.mw-rcfilters-ui-changesListWrapperWidget-highlighted')) { console.log('==> wpcretbase matched div.mw-changeslist.oo-ui-widget.oo-ui-widget-enabled.mw-rcfilters-ui-changesListWrapperWidget.mw-rcfilters-ui-changesListWrapperWidget-highlighted'); }		if ($(content).is('fieldset#mw-watchlist-options.cloptions.oo-ui-widget.oo-ui-widget-enabled.mw-rcfilters-ui-FormWrapperWidget')) { console.log('==> wpcretbase matched fieldset#mw-watchlist-options.cloptions.oo-ui-widget.oo-ui-widget-enabled.mw-rcfilters-ui-FormWrapperWidget'); }		if ($(content).is('#mw-watchlist-options.cloptions.oo-ui-widget.oo-ui-widget-enabled.mw-rcfilters-ui-FormWrapperWidget')) { console.log('==> wpcretbase matched #mw-watchlist-options.cloptions.oo-ui-widget.oo-ui-widget-enabled.mw-rcfilters-ui-FormWrapperWidget'); }		if ($(content).is('#mw-watchlist-options')) { console.log('==> wpcretbase matched #mw-watchlist-options'); }		if ($(content).is('fieldset#mw-watchlist-options')) { console.log('==> wpcretbase matched fieldset#mw-watchlist-options'); }		//console.log("just kill me already."); console.log(content); console.log("===================="); //console.log("why have you not put me out of this misery."); }	mw.hook('wikipage.content').add(wpcretbase); }