Wikipedia:WikiProject User scripts/Scripts/Edit Top.js: Difference between revisions
Content deleted Content added
Code copied from Wikipedia:WikiProject User scripts/Scripts/Edit Top |
change source to syntaxhighlight |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1:
//<syntaxhighlight lang="javascript">
// This will add an [edit] link at the top of all pages except preview pages and the main page
// by User:Pile0nades
Line 20 ⟶ 21:
// get the page title
var pageTitle = mw.config.get('wgPageName');
// create div and set innerHTML to link
Line 32 ⟶ 33:
});
//</syntaxhighlight>
|