PW0N's Blog

Sharing more techniques for like-minded people to learn and communicate together.

0%

Temu One Click Reject Adjustment Script Disagree Adjustment Script

Temu daily pop-up price drop window so got a one-click different price adjustment script!
The script should be used with Grease Monkey!
The script js script can be copied directly to the Grease Monkey can also be directly created a file suffix js file
Then copy the content using a text editor and paste it before dragging it to the Grease Monkey script.
Suggest directly in the Grease Monkey script to create a new script directly copy the content!

temu-left
Click on the top right corner to start directly disagreeing with the price adjustment with one click!!!!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// ==UserScript==
// @name Automatically click to disagree
// @namespace https:www.pw0n.xyz
// @version 0.5
// @description Automatically click on specified elements and add start and pause buttons
// @author pw0n
// @match https://seller.kuajingmaihuo.com/*
// @grant none
// ==/UserScript==

(function() {
'use strict';

let isRunning = false; // Mark the current state, whether or not to auto-click
let intervalId;

function clickElements(selector) {
const elements = document.querySelectorAll(selector);
elements.forEach(element => {
element.click();
});
}

function autoClick() {
// Click on the element with class RD_textWrapper_5-111-0.
clickElements('div.RD_textWrapper_5-111-0.RD_prevRadio_5-111-0');
// Click on the element “I am aware of the risks and will not be alerted this time”.
clickElements('div.CBX_textWrapper_5-111-0.CBX_prevCheckSquare_5-111-0');
// Click the Confirm button
clickElements('button[data-tracking-id="zIb_kvR_JvmInKd9"].BTN_outerWrapper_5-111-0.BTN_danger_5-111-0.BTN_medium_5-111-0.BTN_outerWrapperBtn_5-111-0[data-testid="beast-core-button"]');
}

function startAutoClick() {
if (!isRunning) {
autoClick(); // CLICK
intervalId = setInterval(autoClick, 3000); // Three second click
isRunning = true;
}
}

function stopAutoClick() {
if (isRunning) {
clearInterval(intervalId);
isRunning = false;
}
}

// Create Button
function createControlButtons() {
const startButton = document.createElement('button');
const stopButton = document.createElement('button');

startButton.textContent = 'start';
stopButton.textContent = 'stop';

startButton.style.position = 'fixed';
startButton.style.top = '10px';
startButton.style.left = '10px';
startButton.style.zIndex = '9999';

stopButton.style.position = 'fixed';
stopButton.style.top = '10px';
stopButton.style.left = '70px';
stopButton.style.zIndex = '9999';

startButton.addEventListener('click', startAutoClick);
stopButton.addEventListener('click', stopAutoClick);

document.body.appendChild(startButton);
document.body.appendChild(stopButton);
}

// Create button after page load
window.onload = function() {
createControlButtons();
};
})();