MediaWiki:Wikia.js
From The Maze Runner wiki
Note: After saving, 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)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
// Adds an EditCount tab to the user namespace
$(function() {
var loc = window.location.href;
var username = (wgTitle == "Contributions") ? loc.substring(loc.lastIndexOf("/")+1) : wgTitle;
$('.tabs-container > ul.tabs').append('<li data-id="editcount"><a href="/wiki/Special:Editcount/' + username + '">Editcount</a></li>');
});
// END Adds an EditCount tab to the user namespace
//Twitter module
$(document).ready(function() {
var newSection = '<section id="activities" class="module"><center>' +
'' + '</center>' + '</section>';
$('#WikiaRail').append(newSection);
$.getJSON('/api.php?action=parse&text={{Twitter}}&format=json', function(data) {
var code = data.parse.text['*'];
$('section#activities').append(code);
});
});