Greasy Fork is available in English.

🎁Tron Faucet🎁Zero Timer🎁

Claim Free Tron

< Commentaires sur 🎁Tron Faucet🎁Zero Timer🎁

Avis: Bon - le script fonctionne correctement

§
Posté le: 2022-03-04

Hello, sir
I want to ask, how does the code close the popup and close the new open tab?
i spend 1 day trying but i always fail
this is my code please help,
very happy to learn from you


// ==UserScript==
// @name ⚡gwaher auto ptc⚡
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author DiamondsZone
// @match https://gwaher.com/ptc
// @match https://gwaher.com/ptc/*
// @match https://gwaher.com/ptc/view/
// @match https://gwaher.com/ptc/view/*
// @match https://gwaher.com/page/gwaher-lis
// @grant window.close
// @include *
// @require http://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js
// @icon https://www.google.com/s2/favicons?domain=gwaher.com
// ==/UserScript==

(function() {

'use strict';

var clicked = false;
setInterval(function() {
if(document.querySelector("body > main > div > div.layout-px-spacing > div > div:nth-child(2) > div > div")&&($('.ref-btn'))) {
document.querySelector("body > main > div > div.layout-px-spacing > div > div:nth-child(2) > div > div > button")&&($('.ref-btn')).click();
}},3000);



setInterval(function() {
if ((!clicked && document.querySelector(".h-captcha > iframe") && document.querySelector(".h-captcha > iframe").getAttribute("data-hcaptcha-response").length > 0) && (clicked == false)) {
document.getElementsByClassName("btn btn-success btn-lg btn-block")[0].click();
clicked = true;
}},5000);

//////////////////////close popup and close open new tab not working////////////////////////////////////////////////

function popup(mylink, windowname) {
if (! window.focus);
var href;
if (typeof(mylink) == 'string') href=mylink;
else href=mylink.href;
window.open(href, windowname, 'width: 100%; height: calc(100vh - 75px),scrollbars=no');
setTimeout(() =>{
window.close(href, windowname, 'width: 100%; height: calc(100vh - 75px),scrollbars=no');
},3000);
}
//////////////////////close popup and close open new tab not working////////////////////////////////////////////////
})();

lotocamionAuteur
§
Posté le: 2022-03-05
§
Posté le: 2022-03-05

wow.. thanks you sir the link from you working close pop up and close open new tab
and now my script can work perfectly... thank you sir :D

§
Posté le: 2022-03-05

Sir, I want to ask is there any solution for ANTI BOT LINK bypass script

examples of xxx xoxo ooo and others

because as far as i know only php script can bypass anti bot link,
does js/javascript also work??
and how to code it?

lotocamionAuteur
§
Posté le: 2022-03-05

Its very hard to bypass antibot because success rate is very low, need to train a lot, Me I have no time for that.Check link below if can help you.

https://dev.to/mesadhan/python-bypass-anti-bot-page-and-scrape-it-1aa6


Thanks

§
Posté le: 2022-03-05

Very difficult sir
I think it's better to manually handle anti bot links faster

Thank you for the information sir

§
Posté le: 2022-03-06

sir sorry to ask again
I just want to learn

how to code next url when button code only 1 and have 6 url,
I really want to click to change url

example 1x click target url 1 after that click again taget url 2

code for button
// ==UserScript==
// @name faucettron.xyz
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author DiamondsZone
// @match https://faucettron.xyz/shortlink
// @match https://faucettron.xyz/shortlink.php?status=pageinuse
// @match https://faucettron.xyz/shortlink?status=claimcompleted&reward=900000
// @icon https://www.google.com/s2/favicons?domain=faucettron.xyz
// @grant none
// ==/UserScript==

(function() {
'use strict';
setInterval(function() {
if(document.querySelector("#bb").style.color = ('#5ac642')) {
document.querySelector("#bb").style.color = ('#5ac642')&&(document.querySelector("#widthh")).click();
}
}, 5000);

})();

url or target after click
link1.php
link2.php
link3.php
link4.php
link5.php
link6.php

I have run it but always link1.php is open
please check it sir

§
Posté le: 2022-03-07
Édité le: 2022-03-07

Thank you

I have found solution code like this
/////////////////////////////////target 1///////////////////////////////
if (document.all !== undefined)
{
var item = document.all;
var item2 = document.all;
}
else
{
item = document.getElementsByTagName("Adcorto");
item2 = document.getElementsByTagName("Shrink2Earn");
};
for (var i = 0; i < item.length; ++i) {
if (item[i].textContent.includes("Visit(1 / 1)")) {
console.log("link4.php");
item[i].click();
}
};
////////////target 2///////////

for (var i2 = 0; i2 < item2.length; ++i2) {
if (item2[i2].textContent.includes("Visit(3/3)")) {
console.log("link2.php");
item2[i2].click();
}
};


but if target 1 has finished executing

the code will re-enter target 1 and not enter target 2

when i remove target 1 to make sure target 2 is executable or not, target 2 turns out to be running fine,

what's wrong??

§
Posté le: 2022-03-07
Édité le: 2022-03-07

If you have time to make an example of auto click on the web , it's really hard for me https://faucettron.xyz/shortlink
Curious how to make it
2 days failed, haha

only the color that distinguishes it has been clicked or not

thanks sir...

lotocamionAuteur
§
Posté le: 2022-03-08

The element must be disabled after clicked is apply, if you done that your problem is solved. Me I have no time for that , I am working on another project.
Thanks

§
Posté le: 2022-03-09

I'm confused sir
hahaha
maybe next time i will learn that,
I learned all js/java code from your script and tried to build it myself, developed a little knowledge and
You always help me when I don't understand
Thank you, teacher :D

Poster une réponse

Connectez-vous pour poster une réponse.