View source for User:Euphoria/massBlock.js

Jump to navigation Jump to search

You do not have permission to edit this page, for the following reason:


You can view and copy the source of this page.

if (mw.config.get('wgUserGroups').includes('sysop')) {
// Function to create the blocking interface as if it's a "Special Page"
function createBlockingInterface() {
// Change the document title in the browser tab
document.title = 'Mass Block Tool - ' + mw.config.get('wgSiteName');
// Change the content header to 'Mass Block Tool' and remove the subtitle
$('#firstHeading').text('Mass Block Tool'); // This changes the main page title
$('#contentSub, #siteSub').hide(); // This hides the subtitle and the user link
// The HTML for the blocking interface
var formHtml = '<div id="massBlockTool" style="margin: 20px;">' +
'<p>If you abuse this tool, it\'s your fault, not mine.</p>' +
'<textarea id="usernamesToBlock" placeholder="Usernames to block (one on each line, please):" rows="10" cols="50"></textarea>' +
'<h3>Common reasons:</h3>' +
'<select id="blockReasonSelect">' +
'<option value="vandalism">Vandalism</option>' +
'<option value="spam">Spam</option>' +
'<option value="harassment">Harassment</option>' +
'<option value="other">Other reason</option>' +
'</select><br>' +
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0

Return to User:Euphoria/massBlock.js.