User:Anpang/orangehoney.js

/*  ____                             _    _                          / __ \                           | |  | |                        | |  | |_ __ __ _ _ __   __ _  ___| |__| | ___  _ __   ___ _   _  | |  | | '__/ _` | '_ \ / _` |/ _ \  __  |/ _ \| '_ \ / _ \ | | | | |__| | | | (_| | | | | (_| |  __/ |  | | (_) | | | |  __/ |_| |  \____/|_|  \__,_|_| |_|\__, |\___|_|  |_|\___/|_| |_|\___|\__, |                          __/ |                              __/ |                         |___/                              |___/       A less glitchier and more lite alternative to MoreMenu. EXPLANATION: This gadget adds a "Options" dropdown near the "More" dropdown and the search bar. The dropdown contains some useful things. Uses JavaScript and jQuery. Designed for Old Vector skin and default english (en) language Created and maintained by User:Anpang, special thanks to User:Arcversin Feel free to edit this page even if it's in a userspace or it's really minor.



// Autopurge if (mw.config.get("wgAction") == "purge") { $("form[action*=\"action=purge\"]").submit; } $(".oo-ui-fieldsetLayout-group").remove;

// The dropdown itself $(`   	 Options 	  expanded 	  collapsed 	 Subpages 	 Ask/tell  <a href="${mw.html.escape(window.location.href)}?action=purge" title="Purge the cache to see the latest revision"> Purge cache </a></li></ul> (?) `).insertBefore('#p-search');