Jump to content

User:Proteins/editingtips.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Proteins (talk | contribs) at 11:08, 12 July 2009 (new generic script for testing). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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.
//<pre>
// Generic script for testing
//
// To use this script, add "importScript('User:Proteins/test_script.js');" to your monobook.js subpage 
// under your user page, as you can see at User:Proteins/monobook.js

function testScript() {
	var alert_string = "";

	alert_string = "This is function testScript().";
	window.alert(alert_string);

} // closes function testScript()


addOnloadHook(function () {
            addPortletLink('p-cactions', 'javascript:testScript()', 'testing', 'ca-testing', 'Test script', 't', '');
});

//</pre>