MediaWiki:Group-user.js

From :: ChromeRivals Wiki ::
Revision as of 12:31, 30 March 2024 by Ranzu (talk | contribs) (Created page with "// Change #mw-header links $(document).ready(function() { $('#pt-userpage a').attr('href', 'https://wiki.chromerivals.net/index.php?title=Module:Documentation'); $('#pt-userpage a span').attr('title', 'Documentation'); $('#pt-userpage a span').text('Docs'); $('#pt-mytalk a').attr('href', 'https://wiki.chromerivals.net/index.php?title=Test_Page&redirect=no'); $('#pt-mytalk a span').attr('title', 'Test Page'); $('#pt-mytalk a span').text('Tp'); $(...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
// Change #mw-header links
$(document).ready(function() {
    $('#pt-userpage a').attr('href', 'https://wiki.chromerivals.net/index.php?title=Module:Documentation');
    $('#pt-userpage a span').attr('title', 'Documentation');
    $('#pt-userpage a span').text('Docs');
	
	$('#pt-mytalk a').attr('href', 'https://wiki.chromerivals.net/index.php?title=Test_Page&redirect=no');
    $('#pt-mytalk a span').attr('title', 'Test Page');
    $('#pt-mytalk a span').text('Tp');
	
	$('#pt-preferences a').attr('href', 'https://wiki.chromerivals.net/index.php?title=Test_Page_2&redirect=no');
    $('#pt-preferences a span').attr('title', 'Test Page 2');
    $('#pt-preferences a span').text('Tp 2');
	
	$('#pt-watchlist a').attr('href', 'https://wiki.chromerivals.net/index.php?title=MediaWiki:Common.css&action=edit');
    $('#pt-watchlist a span').attr('title', 'Common.css');
    $('#pt-watchlist a span').text('CSS');
	
	$('#pt-mycontris a').attr('href', 'https://wiki.chromerivals.net/index.php?title=MediaWiki:Common.js&action=edit');
    $('#pt-mycontris a span').attr('title', 'Common.js');
    $('#pt-mycontris a span').text('JS');
});