MediaWiki:Common.js
MediaWiki interface page
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)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Any JavaScript here will be loaded for all users on every page load. importScript('User:Rillke/bigChunkedUpload.js');*/
/* Top Banner Script*/
window['nitroAds'].createAd('banner-top', {
"refreshLimit": 10,
"refreshTime": 30,
"renderVisibleOnly": true,
"refreshVisibleOnly": true,
"delayLoading": true,
"report": {
"enabled": true,
"icon": true,
"wording": "Report Ad",
"position": "top-center"
},
"mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px), (min-width: 320px) and (max-width: 767px)"
});
/* Bottom Banner Script*/
window['nitroAds'].createAd('banner-bottom', {
"refreshLimit": 10,
"refreshTime": 30,
"renderVisibleOnly": true,
"refreshVisibleOnly": true,
"delayLoading": true,
"report": {
"enabled": true,
"icon": true,
"wording": "Report Ad",
"position": "bottom-center"
},
"mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px), (min-width: 320px) and (max-width: 767px)"
});
/* Ads in Content Script*/
window['nitroAds'].createAd('mw-content-text', {
"refreshLimit": 10,
"refreshTime": 30,
"format": "article",
"pageInterval": 2,
"report": {
"enabled": true,
"icon": true,
"wording": "Report Ad",
"position": "bottom-center"
}
});
/* 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', {
"refreshLimit": 10,
"refreshTime": 30,
"format": "anchor",
"anchor": "bottom",
"anchorPersistClose": false,
"report": {
"enabled": true,
"icon": true,
"wording": "Report Ad",
"position": "bottom-right-side"
},
"mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px), (min-width: 320px) and (max-width: 767px)"
});
/* Video Script*/
<script>
window['nitroAds'].createAd('Videoplayer', {
"format": "video-nc",
"mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px), (min-width: 320px) and (max-width: 767px)",
"video": {
"float": "always",
"mobile": "compact",
"initialDelay": 1
}
});
/* Check For Ad Block*/