From a6abfc385ead2d4daf90269abaf8ac89dc8c0f1d Mon Sep 17 00:00:00 2001 From: Alexander BC <1+alexbcberio@noreply.alexbcberio.com> Date: Fri, 1 May 2026 11:38:21 +0200 Subject: [PATCH] chore: open rewards links by clicking the elements --- bing-rewarder/index.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/bing-rewarder/index.js b/bing-rewarder/index.js index 40ac560..ac0b1d1 100644 --- a/bing-rewarder/index.js +++ b/bing-rewarder/index.js @@ -4,7 +4,7 @@ // @description Utilities to semiautomate Bing reward point redemption // @include https://www.bing.com/* // @match https://rewards.bing.com/ -// @version 1.6.1 +// @version 1.6.2 // @updateURL https://git.alexbcberio.com/alexbcberio/userscripts/raw/branch/main/bing-rewarder/index.js // @downloadURL https://git.alexbcberio.com/alexbcberio/userscripts/raw/branch/main/bing-rewarder/index.js // @grant GM.registerMenuCommand @@ -25,9 +25,6 @@ // Wait times to close tab const minBaseTimeout = 3000; const maxBaseTimeout = 5000; - // Extra time to wait to perform next click - const minExtraTimeout = 500; - const maxExtraTimeout = 1750; const pendingElements = document.querySelectorAll("mee-rewards-points .mee-icon-AddMedium"); @@ -45,19 +42,15 @@ } const link = pendingElements[num].closest("a"); - const timeoutMs = minBaseTimeout + Math.random() * (maxBaseTimeout - minBaseTimeout); if (link) { - const linkLocation = link.getAttribute("href"); - const tab = window.open(linkLocation); - setTimeout(() => { - tab.close(); - }, timeoutMs); + link.click(); } + const timeoutMs = minBaseTimeout + Math.random() * (maxBaseTimeout - minBaseTimeout); setTimeout(() => { collectPoint(num+1); - }, timeoutMs + minExtraTimeout + Math.random() * (maxExtraTimeout - minExtraTimeout)); + }, timeoutMs); } }