Jump to content

User:Alexis Jazz/EditNoticesOnMobile-desktop.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//This script is irrevocably released as WTFPL Version 2[http://www.wtfpl.net/about/] by its author, Alexis Jazz.
//This enables edit notices on desktop Minerva, for example https://wiki.riteme.site/w/index.php?title=Talk:Goofy&action=edit&useskin=minerva
//Nobody uses desktop Minerva. Notices don't even work but nobody cares. (T306737)
//console.log('enom-desktop: unhide notices on desktop Minerva');
if ( mw.config.get('wgAction') == 'edit' ){
	$('.editnotice-page .fmbox,.editnotice-page .tmbox,.editnotice-page .tmbox-content').removeClass(['fmbox','tmbox','tmbox-content']);
}