Results 1 to 5 of 5

Thread: Auto-confirm at Main Shops

  1. #1

    Joined
    Jun 2012
    Posts
    2,236
    Pronouns
    He / Him
    Userbars
    39
    Thanks
    1,472
    Thanked
    2,169/810
    DL/UL
    16/0
    Mentioned
    228 times
    Time Online
    63d 23h 42m
    Avg. Time Online
    22m

    Auto-confirm at Main Shops

    Code:
    unsafeWindow.confirm = function() {
        return true;
    };
    I think this code was previously used to skip some sort of confirmation screen for main shop restocking?

    From my testing, and my understanding of how buying from main shop works, am I right to say that this common Userscript snippet doesn't work for skipping the confirmation pop-up anymore?

    Is it safe to skip the pop-up all together and just go straight to the haggle page instead?
    I can implement either clicking "Yes" on the pop-up, or just going straight to the haggle page.
    The first method is definitely slower, but is it "safer"?
    Last edited by Shawn; 04-16-2021 at 09:47 AM.

  2. #2
    twooldcat's Avatar
    Joined
    Jan 2021
    Posts
    46
    Userbars
    0
    Thanks
    16
    Thanked
    98/28
    Mentioned
    4 times
    Time Online
    1d 21h 31m
    Avg. Time Online
    2m
    Correct, that doesn't work anymore since the beta rolled out. You can instead use this code snippet after clicking an item:

    Code:
    document.getElementById("confirm-link").click();
    Placing a ~50-100 ms delay on that confirmation click is probably a good idea but I frankly don't think it's too risky.

  3. The Following User Says Thank You to twooldcat For This Useful Post:

    Shawn (04-17-2021)

  4. #3

    Joined
    Jun 2012
    Posts
    2,236
    Pronouns
    He / Him
    Userbars
    39
    Thanks
    1,472
    Thanked
    2,169/810
    DL/UL
    16/0
    Mentioned
    228 times
    Time Online
    63d 23h 42m
    Avg. Time Online
    22m
    Thanks for confirming this

    While I was waiting, I've already implemented 2 solutions:
    1. Clicks yes, similar to how you have it
    2. Bypasses the popup entirely

    The more I make scripts to help me semi-legit RS, the closer I get to just developing an entire ABer

  5. #4

    Joined
    Jul 2014
    Posts
    68
    Userbars
    1
    Thanks
    37
    Thanked
    6/5
    DL/UL
    34/0
    Mentioned
    9 times
    Time Online
    2d 16h 19m
    Avg. Time Online
    1m
    Quote Originally Posted by Shawn View Post
    Thanks for confirming this

    While I was waiting, I've already implemented 2 solutions:
    1. Clicks yes, similar to how you have it
    2. Bypasses the popup entirely

    The more I make scripts to help me semi-legit RS, the closer I get to just developing an entire ABer
    I have also started reading up on creating userscripts with the same goal - I just hate the confirmation button! Do you mind sharing your userscript if possible? 😊

  6. #5

    Joined
    Jun 2012
    Posts
    2,236
    Pronouns
    He / Him
    Userbars
    39
    Thanks
    1,472
    Thanked
    2,169/810
    DL/UL
    16/0
    Mentioned
    228 times
    Time Online
    63d 23h 42m
    Avg. Time Online
    22m
    Quote Originally Posted by aeyen View Post
    I have also started reading up on creating userscripts with the same goal - I just hate the confirmation button! Do you mind sharing your userscript if possible? 😊
    My userscript can be found in my signature

Posting Permissions

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