Gebruiker:Rots61/common.js: verschil tussen versies
Naar navigatie springen
Naar zoeken springen
Regel 12: | Regel 12: | ||
mw.loader.load('//wikikids.nl/index.php?title=User:Rots61/Clear.js&action=raw&ctype=text/javascript'); // [[User:Rots61/Clear.js]] |
mw.loader.load('//wikikids.nl/index.php?title=User:Rots61/Clear.js&action=raw&ctype=text/javascript'); // [[User:Rots61/Clear.js]] |
||
− | mw.loader.load('//wikikids.nl/index.php?title=User:Rots61/Gadget-Externelinks.js&action=raw&ctype=text/javascript') |
+ | mw.loader.load('//wikikids.nl/index.php?title=User:Rots61/Gadget-Externelinks.js&action=raw&ctype=text/javascript'); |
+ | |||
+ | |||
+ | |||
+ | document.addEventListener("keydown", e => { |
||
+ | if (e.keyCode === 116) { |
||
+ | fetch('https://wikikids.nl/Appelbanaan?action=purge', { |
||
+ | method: 'POST' |
||
+ | }); |
||
+ | } |
||
+ | }); |
Versie van 31 dec 2022 00:03
mw.loader.using('mediawiki.util', function() {
mw.util.addPortletLink('p-tb',
'https://nl.wikipedia.org/wiki/' + encodeURIComponent(mw.config.get('wgPageName')),
'Wikipedia ', '#wikipedialink', mw.config.get('wgPageName') + " op Wikipedia ");
});
mw.loader.using('mediawiki.util', function() {
mw.util.addPortletLink('p-tb',
'https://www.google.nl/search?q=' + encodeURIComponent(mw.config.get('wgPageName')),
'Google ', '#googlelink', mw.config.get('wgPageName') + " op Google ");
});
mw.loader.load('//wikikids.nl/index.php?title=User:Rots61/Clear.js&action=raw&ctype=text/javascript'); // [[User:Rots61/Clear.js]]
mw.loader.load('//wikikids.nl/index.php?title=User:Rots61/Gadget-Externelinks.js&action=raw&ctype=text/javascript');
document.addEventListener("keydown", e => {
if (e.keyCode === 116) {
fetch('https://wikikids.nl/Appelbanaan?action=purge', {
method: 'POST'
});
}
});