MediaWiki:Gadget-TestAdRail.js
Jump to navigation
Jump to search
In other languages: Deutsch • Español • Français • Italiano • 日本語 • Polski • Português do Brasil • Русский • ไทย
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: 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.
/*$(function() {
var $rail = $('<aside class="games-showcase-sidebar">').appendTo($('#content > .content-body'));
for (var index = 0; index < 3; index++) {
$('<div class="sidebar-showcase"><img src="/images/6/61/ARK_2_key_art.jpg" class="sidebar-img" width=300></div>').appendTo($rail);
}
});*/
mw.loader.using(['skins.vector.legacy.js','ext.detectdevice']).then(function(){
var origIsAnon = mw.user.isAnon;
mw.user.isAnon = function() {return true};
setTimeout(function() {
if ($('.games-showcase-sidebar').length === 0) {
mw.loader.moduleRegistry['skins.vector.legacy.js'].packageExports['resources/skins.vector.legacy.js/wikigg.js'].init();
mw.loader.using('ext.detectdevice').then(function(){
mw.user.isAnon = origIsAnon;
$('.games-showcase-sidebar + .games-showcase-sidebar').remove();
});
}
}, 40);
});