You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

User:Quiddity/common.js: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>Quiddity
(add purge/null tools)
imported>Quiddity
(rm hiddencats expando)
 
Line 8: Line 8:
// Default expand the "View templates on this page" and "View hidden categories on this page" on initial preview
// Default expand the "View templates on this page" and "View hidden categories on this page" on initial preview
mw.loader.using('jquery.cookie', function(){ $.cookie('templates-used-list', 'expanded'); });
mw.loader.using('jquery.cookie', function(){ $.cookie('templates-used-list', 'expanded'); });
mw.loader.using('jquery.cookie', function(){ $.cookie('hiddencats-list', 'expanded'); });


// Navpopups. See also global.css
// Navpopups. See also global.css

Latest revision as of 23:12, 15 June 2022

// Expand all grouped RC/Watchlist entries, if you use preference "Group changes by page in recent changes and watchlist". 
$( function () { 
    mw.hook('structuredChangeFilters.ui.initialized').add(function() {
    $('.mw-enhancedchanges-arrow').trigger( 'click' );
	} );
} );

// Default expand the "View templates on this page" and "View hidden categories on this page" on initial preview
mw.loader.using('jquery.cookie', function(){ $.cookie('templates-used-list', 'expanded'); });

// Navpopups. See also global.css
window.popupDelay=0.3;
window.popupHideDelay=0.3;
window.popupOnEditSelection=false;
window.popupAdminLinks=true;
window.imagePopupsForImages=false;
window.popupPreviewKillTemplates=false;

var ns = mw.config.get("wgNamespaceNumber"),
	action = mw.config.get('wgAction');
if (ns == 2 || ns == 3) {
	// Add info on userpages listing their flags, account-age, contributions-count, and last-edit-time
    // See screenshot at https://en.wikipedia.org/wiki/User:PleaseStand/User_info
    mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:PleaseStand/userinfo.js&action=raw&ctype=text/javascript&oldid=803890891');
}

if (ns == 2 || ns == 3 || ns == -1) {
    // Gives some useful links on user, user talk, and user contribution pages
    // by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Useful_links>
    mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:Hoo_man/useful_links.js&action=raw&ctype=text/javascript&oldid=18534438');
    if(typeof(usefulLinksConfig) == 'undefined') usefulLinksConfig = {};
    usefulLinksConfig.toolLinkMethod = 'p-cactions';
}

// https://en.wikipedia.org/wiki/User:Writ_Keeper/Scripts/massRollback.js
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/massRollback.js&action=raw&ctype=text/javascript&oldid=794876634');

/* Override annoying purge dialog */
if ( mw.config.get( 'wgAction' ) === 'purge' ) {$('form.mw-htmlform').submit();}

// Strikeout locally blocked username links
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript&oldid=884588633');

// Null edit and Purge links in "More" menu
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/NullEdit.js&action=raw&ctype=text/javascript&oldid=1016230548');
mw.loader.load('https://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-purgetab.js&action=raw&ctype=text/javascript&oldid=951989513');