User:Shadowphoenix/JavaScript

This is a list of JavaScript tools that have been created/modifyed by User:GW-Shadowphoenix for your convinence. All of this is released under the GFDL and the Creative Commons.

Purge You Cache Easily
Simply add the following code to you monobook.js:

/*This will add a "purge" tab to your toolbar for easy cache purging */ // addPurge addOnloadHook(function {    var hist; var url;    if (!(hist = document.getElementById('ca-history') )) return;    if (!(url = hist.getElementsByTagName('a')[0] )) return;    if (!(url = url.href )) return;    addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'), 'purge', 'ca-purge', 'Purge server cache for this page', '0'); });

Easy Access Block Log
Add the following code to your monobook.js, make sure that you only use it when on someone's userpage:

Adds a link in your toolbox which will allow you to see the blocks a user has recieved in one click!

Blocks Given Tab
Add the following code to your monobook.js:

Adds a tab to your edit tool bar when you are on a userpage, the tab allows you to see the blocks given by that sysop/bcrat. A similar link for the toolbox will be coming soon.

Protections Made Tab
Add the following code to your monobook.js:

Adds a tab to your edit tool bar when you are on a userpage, the tab allows you to see the protections made by that sysop/bcrat. A similar link for the toolbox will be coming soon.