Jump to content

User:EpochFail/aps review.js

From Wikipedia, the free encyclopedia
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.
APS_REVIEW_URI = "http://hciresearch2.hcii.cs.cmu.edu/~rfarzan/wikipedia/tool/phpserver.php"

function importCSS(page) {
	var url = mw.config.get('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(mw.config.get('wgNamespaceNumber') == 0){
	importCSS("User:EpochFail/aps_review.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/aps_review_system.js")
	//mw.loader.load("http://www-users.cs.umn.edu/~halfak/aps_review/aps_review_system.js")
}