More actions
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)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. importScript('User:Rillke/bigChunkedUpload.js');*/
/* Check For Ad Block
mw.loader.load( 'https://www.gamebrew.org/index.php?title=MediaWiki:Blockadblock.js&action==raw&ctype=text/javascript' );
(function detectAdblockWithInvalidURL(callback) {
var flaggedURL = 'https://s.nitropay.com/ads-1285.js';
if (window.fetch) {
var request = new Request(flaggedURL, {
method: 'HEAD',
mode: 'no-cors',
});
fetch(request)
.then(function(response) {
if (response.status === 404) {
callback(false);
}
})
.catch(function(error) {
callback(true);
});
} else {
var http = new XMLHttpRequest();
http.open('HEAD', flaggedURL, false);
try {
http.send();
} catch (err) {
callback(true);
}
if (http.status === 404) {
callback(false);
}
}
})(function(usingAdblock) {
if(sessionStorage.getItem('showAlert') != "false"){
alert("Hello, visitor! It looks like you're using an ad-blocker. Please consider adding Gamebrew.org to your adblock whitelist or please disable your browser's ad-blocker. Our ads support the development and upkeep of the site. Thank you.");
sessionStorage.setItem('showAlert', "false");
}
})*/
/*Banner-Top*/
window['nitroAds'].createAd('banner-top-mobile', {
"refreshLimit": 10,
"refreshTime": 30,
"renderVisibleOnly": true,
"refreshVisibleOnly": false,
"sizes": [
[
"320",
"100"
],
[
"320",
"50"
],
[
"300",
"250"
],
[
"336",
"280"
]
],
"mediaQuery": "(min-width: 320px) and (max-width: 767px)"
});
window['nitroAds'].createAd('banner-top-desktop-ipad', {
"refreshLimit": 10,
"refreshTime": 30,
"renderVisibleOnly": true,
"refreshVisibleOnly": false,
"sizes": [
[
"728",
"90"
]
],
"mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px)"
});
/*Banner-Bottom*/
window['nitroAds'].createAd('banner-bottom-mobile', {
"refreshLimit": 10,
"refreshTime": 30,
"renderVisibleOnly": true,
"refreshVisibleOnly": false,
"sizes": [
[
"320",
"100"
],
[
"320",
"50"
],
[
"300",
"250"
],
[
"336",
"280"
]
],
"mediaQuery": "(min-width: 320px) and (max-width: 767px)"
});
window['nitroAds'].createAd('banner-bottom-desktop-ipad', {
"refreshLimit": 10,
"refreshTime": 30,
"renderVisibleOnly": true,
"refreshVisibleOnly": false,
"sizes": [
[
"728",
"90"
],
[
"970",
"90"
],
[
"300",
"250"
],
[
"336",
"280"
]
],
"mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px)"
});
/* Ads in Content Script*/
window['nitroAds'].createAd('mw-content-text', {
"refreshLimit": 10,
"refreshTime": 30,
"format": "article",
"pageInterval": 2,
"sizes": [
[
"300",
"250"
],
[
"336",
"280"
]
]
});
/* Ads in interstitial Script
window['nitroAds'].createAd('interstitial', {
"format": "interstitial",
"mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px), (min-width: 320px) and (max-width: 767px)"
});*/
/* Ads in AnchorText Script*/
window['nitroAds'].createAd('AnchorText-mobile', {
"refreshLimit": 10,
"refreshTime": 30,
"format": "anchor",
"anchor": "top",
"anchorPersistClose": false,
"mediaQuery": "(min-width: 320px) and (max-width: 767px)"
});
/* Video Script - Desktop and Ipad Only*/
window['nitroAds'].createAd('Videoplayer', {
"format": "video-nc",
"mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px)",
"video": {
"float": "always",
"mobile": "compact",
"initialDelay": 1
}
});
/*SideRail-Desktop-Ipad*/
window['nitroAds'].createAd('siderail-desktop-ipad', {
"refreshLimit": 10,
"refreshTime": 30,
"format": "rail",
"rail": "left",
"railOffsetTop": 0,
"railOffsetBottom": 200,
"railCollisionWhitelist": [],
"sizes": [
[
"160",
"600"
],
[
"300",
"600"
]
],
"mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px)"
});
/*Anchor Top/Bottom - Desktop and Ipad Only
window['nitroAds'].createAd('anchorTop-DesktopIpad', {
"refreshLimit": 10,
"refreshTime": 30,
"format": "anchor",
"anchor": "top",
"anchorPersistClose": false,
"mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px)"
});*/
/*Fixed Small Banner Top*/
window['nitroAds'].createAd('small-banner-top', {
"refreshLimit": 10,
"refreshTime": 30,
"renderVisibleOnly": true,
"refreshVisibleOnly": true,
"sizes": [
[
"320",
"50"
]
],
"mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px)"
});
/*Sidebar-Sticky*/
window['nitroAds'].createAd('sidebar-sticky', {
"refreshLimit": 10,
"refreshTime": 30,
"renderVisibleOnly": true,
"refreshVisibleOnly": true,
"sizes": [
[
"160",
"600"
]
],
"mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px)"
});
/* Ad Block*/