Greasy Fork is available in English.

Discussions » Creation Requests

Can anyone help me and fix my Script

§
Posted:

Can anyone help me and fix my Script

Can someone please help me fix my script, i will tip nicely, its just need to be updated to work on Chrome for freebitco.in, its works on Edge just need some minor fix to work on chrome, thanks in advance.

§
Posted:
Edited:

This is how the script looks like:

// ==UserScript==
// @name FreeBitco.in reCAPTCHA Verfication Auto ROLL
// @icon http://www.iconarchive.com/download/i109476/cjdowner/cryptocurrency-flat/Bitcoin-BTC.ico
// @namespace Tampermonkey® Scripts
// @match *://*/*
// @grant none
// @description
// @version 0.0.1
// ==/UserScript==
var domain = (window.location != window.parent.location) ? document.referrer.toString() : document.location.toString();
if (domain.indexOf('miped.ru') == -1 && domain.indexOf('indiegala') == -1 && domain.indexOf('gleam.io') == -1) { //You can exclude domains here (advanced)
    if (location.href.indexOf('google.com/recaptcha') > -1) {
        var clickCheck = setInterval(function() {
            if (document.querySelectorAll('.recaptcha-checkbox-checkmark').length > 0) {
                clearInterval(clickCheck);
                document.querySelector('.recaptcha-checkbox-checkmark').click();
            }
        }, 5000);
    } else {
        var forms = document.forms;
        for (var i = 0; i < forms.length; i++) {
            if (forms[i].innerHTML.indexOf('google.com/recaptcha') > -1) {
                var rc_form = forms[i];
                var solveCheck = setInterval(function() {
                    if (grecaptcha.getResponse().length > 0) {
                        clearInterval(solveCheck);
                        document.querySelector('#free_play_form_button').click();
                    }
                }, 100);
            }
        }
    }
}
$(function(){
    setTimeout(function() {
       $("send").trigger('click');
    },1);
 });

If someone can make it work for Chrome feel free to share it will everyone else on this site!

§
Posted:

first, for excluding you could use an excludes section in the script settings. second, using global inclusions such as *: // * / * is not recommended, unless absolutely necessary due to performance issues and the probability of conflicts third, what error do you get in the devtools console?

Post reply

Sign in to post a reply.