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 05:19, 3 August 2011 (testing on my user page). 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)
	)
}
//if(wgNamespaceNumber == 0){
if(wgNamespaceNumber == 2 && wgArticleId == 15661504){
	importCSS("User:EpochFail/todo.css")
	/*$('head').append(
		$("<link>")
			.attr('rel', 'stylesheet')
			.attr('type', 'text/css')
			.attr('href', 'http://www-users.cs.umn.edu/~halfak/aps_review/aps_review.css')
	)*/
	importScript("User:EpochFail/todo_system.js")
}