Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name GET
- // @namespace HERPDERP
- // @include http://boards.4chan.org/*
- // ==/UserScript==
- /*
- * Edited version of: http://userscripts.org/scripts/show/101413
- * Allows Posting of your own comments.
- *
- * Instructions:
- * 1) Fill out captcha and comment
- * 2) Paste number you want in password field
- * 3) Double click the password field
- * 4) Wait for it to post
- * 5) Adjust "var s" as needed to time it right. The higher the number, the earlier the post.
- *
- * Note: Only works on normal post field, no quick reply.
- */
- var first = true, n = 1;
- var s = 2;
- document.getElementsByName("pwd")[0].type = "text";
- function check() {
- if (n == 0) return;
- var k = first ? n : (n-s);
- GM_xmlhttpRequest({
- method: "HEAD",
- url: "http://sys.4chan.org" + location.pathname.match(/\/[^\/]+\//)[0] + "imgboard.php?res=" + k,
- onload: function(response) {
- if (n == 0) return;
- if (response.status == 200) {
- if (first) {
- alert(n + " passed");
- n = 0;
- } else {
- document.getElementsByName("post")[0].submit();
- }
- } else {
- first = false;
- check();
- }
- }
- });
- }
- document.getElementsByName("pwd")[0].addEventListener("dblclick", function(e) {
- first = true;
- n = parseInt(document.getElementsByName("pwd")[0].value);
- document.getElementsByName("pwd")[0].value = "Posting..."
- check();
- }, false);
Advertisement
Add Comment
Please, Sign In to add comment