Title: // ==UserScript== // @id arch.413chan.net-d2ca7672-9b08-4e56-b0b0-5 Author: Anonymous Pastebin link: http://pastebin.com/5EdMTPpP First Edit: Friday 22nd of June 2012 02:20:39 AM CDT Last Edit: Friday 22nd of June 2012 02:20:39 AM CDT // ==UserScript== // @id             arch.413chan.net-d2ca7672-9b08-4e56-b0b0-5b341ae6e13b@scriptish // @name           archive_screencap_helper // @version        1.0 // @namespace       // @author         // @description    a thing for mlpg archive // @include        http://arch.413chan.net/* // @run-at         document-end // ==/UserScript== alert('checkmark 0'); var boxes = document.getElementsByTagName('input'); //get all the checkboxes var divs = document.getElementsByClassName('postContainer') var savethese = []; alert('checkmark 1'); for(var i = 0; i < boxes.length(); i++){     if(boxes[i].type=='checkbox' && boxes[i].checked && boxes[i].value=='delete'){         var temp = 'pc';         savethese.push(temp.concat(boxes[i].name)); //if the checkbox of a post is checked, save the number of the post     } } alert('checkmark 2'); for (var i = 0; i < divs.length(); i++){     var q = 0; //if q is not zero at the end of this loop, we'll save post i     for (var p = 0; p < savethese.length(); p++){         if (divs[i].id == savethese[p])             q++; //if the pth saved ID equals the ith post id, save it        }     }     if (q == 0){         divs[i].remove (); //looks like we're not saving post i     } } alert('finished');