Display title | MediaWiki:Common.js |
Default sort key | Common.js |
Page length (in bytes) | 517 |
Namespace ID | 8 |
Namespace | MediaWiki |
Page ID | 7337 |
Page content language | en - English |
Page content model | JavaScript |
Indexing by robots | Allowed |
Number of redirects to this page | 0 |
Number of subpages of this page | 0 (0 redirects; 0 non-redirects) |
Edit | Allow only users with "editsitejs" permission (infinite) |
Move | Allow only users with "editsitejs" permission (infinite) |
Page creator | Admin (talk | contribs) |
Date of page creation | 22:42, 27 April 2024 |
Latest editor | Admin (talk | contribs) |
Date of latest edit | 01:34, 13 May 2024 |
Total number of edits | 7 |
Total number of distinct authors | 1 |
Recent number of edits (within past 90 days) | 0 |
Recent number of distinct authors | 0 |
Description | Content |
Article description: (description ) This attribute controls the content of the description and og:description elements. | /* Any JavaScript here will be loaded for all users on every page load. */
$( function () {
var elems = document.getElementsByClassName('mw-editsection'); // *** NOTE: ClassName may need to be 'mw-editsection' instead
for (i = 0; i < elems.length; i++) {
var span = document.createElement('span');
var link = document.createElement('a');
link.href = '#top';
link.appendChild(document.createTextNode('↑ top'));
span.appendChild(link);
elems[i].insertBefore(span, elems[i].lastChild.nextSibling);
}
}); |