MediaWiki:Common.js: Difference between revisions
MediaWiki interface page
More actions
No edit summary |
No edit summary |
||
| Line 14: | Line 14: | ||
"position": "top-center" | "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: 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)" | "mediaQuery": "(min-width: 1025px), (min-width: 768px) and (max-width: 1024px), (min-width: 320px) and (max-width: 767px)" | ||
}); | }); | ||
/* Check For Ad Block*/ | /* Check For Ad Block*/ | ||
Revision as of 06:37, 18 November 2022
/* 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: 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)"
});
/* Check For Ad Block*/