This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name MT Disable Spam Users | |
// @description Display URL and email address and check keywords to delete spam users. | |
// @include http://YOUR-MT-DOMAIN/cgi-bin/mt/mt.cgi* | |
// ==/UserScript== | |
var $; | |
// Add jQuery | |
(function(){ | |
if (typeof unsafeWindow.jQuery == 'undefined') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
// Configure jQuery oEmbed library | |
$.fn.oembed.defaults = { | |
maxWidth: 500, maxHeight: 400, | |
embedMethod: "append" // "replace", "auto", "append", "fill" | |
}; | |
// Append the oEmbed contents fetched from #oembed_url | |
$("form#oembed_form").submit( function () { |
NewerOlder