Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: [GM/TM] Charity Corner Easy Donation

  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)

  3. #2
    Stocking Anarchy's Avatar
    Joined
    May 2016
    Posts
    1,371
    Userbars
    11
    Thanks
    929
    Thanked
    1,627/650
    DL/UL
    182/0
    Mentioned
    145 times
    Time Online
    47d 8h 56m
    Avg. Time Online
    23m
    Looks wonky on firefox but it works







  4. #3

    NPs's Avatar
    Joined
    May 2016
    Posts
    71
    Userbars
    2
    Thanks
    91
    Thanked
    22/13
    DL/UL
    45/0
    Mentioned
    3 times
    Time Online
    4d 12h 53m
    Avg. Time Online
    2m
    Weird, I'm adding it on GM, no error message appears, but script isnt listed on Scripts page O_o

  5. #4
    Nyu's Avatar
    Joined
    Jun 2016
    Posts
    595
    Pronouns
    She
    Userbars
    29
    Thanks
    740
    Thanked
    933/252
    DL/UL
    32/0
    Mentioned
    99 times
    Time Online
    56d 12h 11m
    Avg. Time Online
    28m
    @(you need an account to see links)
    Thanks a lot!
    Was trying to make one but couldn't figure out how to.
    I edited your code a bit, it works on the principal page too now and made it smaller c:

    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);
                
                
            });
        });
    })();

  6. The Following 6 Users Say Thank You to Nyu For This Useful Post:

    Accelerator (02-03-2017),Aura (02-04-2017),Daviid (02-04-2017),j03 (02-04-2017),Samantha (02-04-2017),Stocking Anarchy (02-04-2017)

  7. #5

    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
    Added auto-click

  8. #6
    Stocking Anarchy's Avatar
    Joined
    May 2016
    Posts
    1,371
    Userbars
    11
    Thanks
    929
    Thanked
    1,627/650
    DL/UL
    182/0
    Mentioned
    145 times
    Time Online
    47d 8h 56m
    Avg. Time Online
    23m
    Quote Originally Posted by NPs View Post
    Weird, I'm adding it on GM, no error message appears, but script isnt listed on Scripts page O_o

    On script page it is listed as Easy Donation. On dropdown tab it is named user-script. Prior to update.

    Quick question. Didn't want to try testing it, but if you have different rarity ranges will it mix them up if they are close enough together? So if I have r 89 and r 90 stuff I should make sure they aren't in my inventory at the same time? Gonna try and go for a trophy later on.
    Last edited by Stocking Anarchy; 02-04-2017 at 10:18 AM.







  9. #7

    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
    Quote Originally Posted by Stocking Anarchy View Post
    On script page it is listed as Easy Donation. On dropdown tab it is named user-script. Prior to update.

    Quick question. Didn't want to try testing it, but if you have different rarity ranges will it mix them up if they are close enough together? So if I have r 89 and r 90 stuff I should make sure they aren't in my inventory at the same time? Gonna try and go for a trophy later on.
    This picks the first available item in the dropdown menu for each donation.
    I could happen that it donates rarities like: 80,83,85,87,91.

  10. The Following User Says Thank You to Daviid For This Useful Post:

    Stocking Anarchy (02-04-2017)

  11. #8
    Saiyan Race
    j03's Avatar
    Joined
    Dec 2011
    Posts
    13,720
    Userbars
    166
    Thanks
    5,906
    Thanked
    33,076/6,608
    DL/UL
    23/36
    Mentioned
    3,867 times
    Time Online
    563d 4h 55m
    Avg. Time Online
    3h 13m
    This is very handy. Great contributions @(you need an account to see links) and @(you need an account to see links)
    (you need an account to see links)
    (you need an account to see links)(you need an account to see links)

    ------------------------
    [02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
    ------------------------


  12. The Following User Says Thank You to j03 For This Useful Post:

    Nyu (02-04-2017)

  13. #9
    Doge's Avatar
    Joined
    Oct 2014
    Posts
    1,096
    Userbars
    25
    Thanks
    1,073
    Thanked
    867/357
    DL/UL
    33/0
    Mentioned
    120 times
    Time Online
    230d 9h 40m
    Avg. Time Online
    1h 36m
    Can anyone help me?

    I copied it and dragged it on Chrome. I'm clicking the 2nd donate button and I think it is not working? :/

  14. #10

    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
    Quote Originally Posted by Garumi View Post
    Can anyone help me?

    I copied it and dragged it on Chrome. I'm clicking the 2nd donate button and I think it is not working? :/
    Press F12 and go to the Console Tab to see if there's any error.

Posting Permissions

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