User:Victor Schmidt/common.js

//Move to draft mw.loader.load( '/w/index.php?title=User:MPGuy2824/MoveToDraft.js&action=raw&ctype=text/javascript' ); // Backlink: User:MPGuy2824/MoveToDraft.js

//linter mw.loader.load( "https://en.wikipedia.org/w/index.php?title=User:PerfektesChaos/js/lintHint/r.js&action=raw&bcache=1&maxage=86400&ctype=text/javascript" );

//Edit request //mw.loader.load( '/w/index.php?title=User:Jackmcbarn/editProtectedHelper.js&action=raw&ctype=text/javascript' ); // Backlink: User:Jackmcbarn/editProtectedHelper.js mw.loader.load( '/w/index.php?title=User:Terasail/COI_Request_Tool.js&action=raw&ctype=text/javascript'); // Backlink: User:Terasail/COI Request Tool.js mw.loader.load( '/w/index.php?title=User:Terasail/Edit_Request_Tool.js&action=raw&ctype=text/javascript'); // Backlink: User:Terasail/Edit_Request_Tool mw.loader.load( '/w/index.php?title=User:Suffusion_of_Yellow/effp-helper.js&action=raw&ctype=text/javascript' ); // Backlink: User:Suffusion of Yellow/effp-helper.js

//Revdel mw.loader.load( '/w/index.php?title=User:Enterprisey/cv-revdel.js&action=raw&ctype=text/javascript' ); // Backlink: User:Enterprisey/cv-revdel.js

//Source Assesment mw.loader.load( '/w/index.php?title=User:DannyS712/SATG.js&action=raw&ctype=text/javascript' ); // Backlink: User:DannyS712/SATG.js

//Rater mw.loader.load( '/w/index.php?title=User:Evad37/rater.js&action=raw&ctype=text/javascript' ); // Backlink: User:Evad37/rater.js importScript('User:RedWarn/.js'); // Backlink: User:RedWarn/.js

//FFU: Note: wgPageName is URL-encoded. if(mw.config.get("wgPageName") == "Wikipedia:Files_for_upload"){ mw.loader.load('/w/index.php?title=User:BrandonXLF/FFUHelper.js&action=raw&ctype=text/javascript'); // User:BrandonXLF/FFUHelper.js }

/* rewrite URL's to go to desktop */ jQuery( function{	if(document.body.querySelector(".mw-parser-output") === null){		//probbably edit mode or history page.		return;	}	const links = document.body.querySelectorAll(".mw-parser-output a");	console.log("Found the folllowing links",links);	for(var i = 0;i < links.length;i++){		var link = links[i];		if(link.href.indexOf("en.m.wikipedia.org")>-1){			link.href=link.href.replace("en.m.wikipedia.org","en.wikipedia.org");			//TODO: handle page titles with $$ in a special way			link.title+=" (adapted to desktop version)";		}	} } );