User:Asarta/common.js
From Fallen London Wiki (Staging)
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 / Edge: 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.
// Add some extra links
/// Sandbox
mw.util.addPortletLink(
'p-personal',
'/wiki/User:Asarta/Sandbox',
'Sandbox',
'pt-subpages',
'User:Asarta/Sandbox',
null,
'#pt-preferences'
);
/// common.js
mw.util.addPortletLink(
'p-personal',
'/wiki/User:Asarta/common.js',
'Common.js',
'pt-subpages',
'User:Asarta/common.js',
null,
'#pt-watchlist'
);
/// common.css
mw.util.addPortletLink(
'p-personal',
'/wiki/User:Asarta/common.css',
'Common.css',
'pt-subpages',
'User:Asarta/common.css',
null,
'#pt-watchlist'
);
// import scripts
mw.loader.load('/w/index.php?title=User:Asarta/section-link.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Asarta/section-link.js]]
mw.loader.load('/w/index.php?title=User:Asarta/ShowMessageNames.js&action=raw&ctype=text/javascript'); // Backlink [[User:Asarta/ShowMessageNames.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); //Browser version of AWB; see [[w:User:Joeytje50/JWB]]
mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/massRollback.js&action=raw&ctype=text/javascript' );
mw.loader.load( '/w/index.php?title=User:Asarta/spoiler.js&action=raw&ctype=text/javascript');
if (mw.config.get('wgPageName') == 'Christmas (Guide)') {
document.body.style.setProperty('background-image', 'url("' + 'https://fallenlondon.wiki/w/images/0/04/Lodgings_snow-header.png' + '")');
}