Jump to content

User:EpochFail/wikignome.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by EpochFail (talk | contribs) at 14:02, 15 August 2011 (todo on for all pages.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
function importCSS(page) {
	var url = wgScript + '?title=' +
		encodeURIComponent(page.replace(' ','_')).replace('%2F','/').replace('%3A',':') +
		'&action=raw&ctype=text/css'
 
	$('head').append(
		$("<link>")
			.attr('rel', 'stylesheet')
			.attr('type', 'text/css')
			.attr('href', url)
	)
}
function getParameterByName(name)
{
  name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
  var regexS = "[\\?&]" + name + "=([^&#]*)";
  var regex = new RegExp(regexS);
  var results = regex.exec(window.location.href);
  if(results == null)
    return "";
  else
    return decodeURIComponent(results[1].replace(/\+/g, " "));
}
if(wgNamespaceNumber == 0 && /*wgArticleId == 15661504 && */getParameterByName('action') == ''){
	importCSS("User:EpochFail/todo.css")
	importScript("User:EpochFail/todo_system.js")
}