Created
September 2, 2021 00:01
-
-
Save juvian/fd068370548b8e912b0d930e9cbf87bf to your computer and use it in GitHub Desktop.
Neopets delete read emails
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 Delete read | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author You | |
// @match ://www.neopets.com/neomessages.phtml* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
var btn = $("<a href='#'><b>Delete read</b></a>").click(function(){ | |
$("input[name='checkbox_arr[]']").each(function(){ | |
$(this).prop('checked', $(this).parent().siblings().last().text() == 'Read'); | |
}); | |
$("option[value='Delete Messages']").parent().val('Delete Messages'); | |
$("form[action='modify_neomessages.phtml']").submit(); | |
return false; | |
}) | |
$("a[href='/listgreetings.phtml']").parent().append('| ').append(btn); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment