User talk:Pdibiase

From PaxSpace Inc
Jump to: navigation, search

Google Calendar

Calendar

Grease Monkey Scripts

Quick Removal of users

The following GM script will be only active on a users block page (easily accessible from the users list or from recent changes)

// ==UserScript==
// @name        Add Quick Remove Block
// @namespace   PaxSpace_Wiki
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @include     http://wiki.paxspace.org/index.php?title=Special:Block/*
// @version     1
// @grant       none
// ==/UserScript==

var fieldset = $('#mw-content-text').find('fieldset');
var myButton = $('<button id="myButton">Quick Remove</button>');
$(myButton).insertBefore(fieldset);

$(myButton).click(function()
    {
        $('#mw-input-wpExpiry').val('infinite');
        
        $('#mw-input-wpDisableEmail').prop('checked',true);
        
        $('#mw-input-wpHideUser').prop('checked',true);
        
        var confirm = $('#mw-input-wpConfirm');
        $(confirm).prop('checked',true);
        
        $('input .mw-htmlform-submit').click();
    });