Results 1 to 10 of 17

Thread: [GM/TM] Charity Corner Easy Donation

Threaded View

  1. #1

    Joined
    Jul 2012
    Posts
    1,888
    Thanks
    1,619
    Thanked
    3,297/1,003
    DL/UL
    223/0
    Mentioned
    469 times
    Time Online
    132d 23h 52m
    Avg. Time Online
    45m

    [GM/TM] Charity Corner Easy Donation

    Tested only in Google Chrome with Tampermonkey.
    Click the 2nd donate button and it'll automatically select the first 5 items available to be donated and donate them.
    Donate > Thanks! > Donate > Thanks! > Donate > Thanks! > Donate > Thanks!

    Code:
    // ==UserScript==
    //  @(you need an account to see links)         Easy Donation
    //  @(you need an account to see links)space    (you need an account to see links)
    // @version      0.1
    //  @(you need an account to see links)cription  Donate first 5 items to Charity Corner with a click.
    // @author       Daviid  @(you need an account to see links)
    //  @(you need an account to see links)ch        (you need an account to see links)
    // @grant        none
    // ==/UserScript==
    
    (function() {
        'use strict';
        $(document).ready(function(){
            $("#donateButton").append("<button id='autodonate' value='auto'>Donate</button>");
            $("#autodonate").click(function(){
    			var i=1;
    			do{
                var option = $('#charityDrive #gift'+i+' select option:selected').nextAll(':not([disabled])').val();
                $("#charityDrive #gift"+i+" select").selectedIndex=option;
                $("#charityDrive #gift"+i+" select").val(option);
                $("#charityDrive #gift"+i+" select").trigger('change');
    				i++;
    			}while(i<6);
                
                
            });
    
            (function loop() {
                var rand = Math.round(Math.random() * (5000 - 2000)) + 2000;
                console.log(rand);
                setTimeout(function() {
                    $("#autodonate").trigger('click');
                    loop();
                }, rand);
            }());
    
        });
    })();


    Edit: Smaller code thanks to @(you need an account to see links) and added auto-click every 2-5 seconds.
    Last edited by Daviid; 02-04-2017 at 09:58 AM.

  2. The Following 29 Users Say Thank You to Daviid For This Useful Post:

    Accelerator (02-03-2017),Andymac106 (05-22-2017),Anthony (02-03-2017),Aska (02-03-2017),athron (02-04-2017),Aura (02-03-2017),Ban (02-03-2017),Doge (02-03-2017),Hikimaru (02-03-2017),iAaron (02-04-2017),j03 (02-03-2017),joeyjoey95 (02-03-2017),Kawaii (02-03-2017),Maison (02-03-2017),Mama Bear (02-03-2017),Meepit (02-03-2017),Menine (02-03-2017),milk (02-07-2017),moosecaboose (02-03-2017),NPs (02-03-2017),Nyu (02-03-2017),people (02-03-2017),Prose Edda (02-04-2017),Pusheen (02-03-2017),Samantha (02-03-2017),Stocking Anarchy (02-03-2017),TimeLord (02-04-2017),User5931 (02-05-2017),zxzero (02-04-2017)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •