[Giveaway] [NiceRiceBot] FreeRice.com Bot

Status
Not open for further replies.

DEViATED

Newbie
Joined
Jun 20, 2019
Messages
16
Reaction score
4
Hi there everyone! A few weeks ago I stumbled back onto a website that had taken hours from me back in school. And with their new leader boards system it time to bot and get Number 1!
There is instructions on how to use this in the raw code below and on my Github page for this project :)
Just make sure to leave you're ad blocker off to give freerice at least something.
Code:
//
//
//
//      _   ___              ____  _              ____        __
//     / | / (_)_______     / __ \(_)_______     / __ )____  / /_
//    /  |/ / / ___/ _ \   / /_/ / / ___/ _ \   / __  / __ \/ __/
//   / /|  / / /__/  __/  / _, _/ / /__/  __/  / /_/ / /_/ / /_ 
//  /_/ |_/_/\___/\___/  /_/ |_/_/\___/\___/  /_____/\____/\__/ 
// 
// Made By: Neil Master/Yeehawlerz101
// Github: https://github.com/Yeehawlerz101/NiceRiceBot
//  Notes: Make sure to leave your ad blocker off so that 'freerice' can have some sort of income :)
// How to use: Make an account, sign in all that fun stuff, then go to the categories and click multiplacation tables
// Then when the page loads, go to the console of your web browser and paste the code in the console and enjoy!
const interval = setInterval(function() {
    var problem = document.getElementsByClassName("card-title");
    for (var i = 0; i < problem.length; i++) {
      var prob = problem[i].innerText;
    var pr = prob.replace(" x ", "-");
     var splits =  pr.split("-",2)
      var answer = splits[0]*splits[1]
      console.log(answer)
    }   
    var a = document.getElementsByClassName('card-button')[0].innerText;
    b = document.getElementsByClassName('card-button')[1].innerText;
    c = document.getElementsByClassName('card-button')[2].innerText;
    d = document.getElementsByClassName('card-button')[3].innerText;
    console.log(a)
    console.log(b)
    console.log(c)
    console.log(d)
    
    console.log("The Answer Should be: " + answer)
    if (a == answer) {
        document.getElementsByClassName('card-button')[0].click();
    }
     else if (b == answer){
        document.getElementsByClassName('card-button')[1].click();
    }
   else if (c == answer){
    document.getElementsByClassName('card-button')[2].click();
    }
  else  if (d == answer){
    document.getElementsByClassName('card-button')[3].click();
    } else {
      console.log("No Answer Found")
    }
  }, 2000);
 
Are you pasting it in the console of your web browser? It's worked for me on frefox, Chrome, and vivaldi.
 
Sweet, its working for chrome without any issue. But What is the use of this website?
 
Update: So apparently Freerice banned me so be careful and not opening 3 windows on 4 laptops lmao.

Sweet, its working for chrome without any issue. But What is the use of this website?
So this website is to donate rice to third world countries that are in need of food. FreeRices' whole concept is to give free rice to people in need of view ads and answering questions correctly.
what is this for ?
https://freerice.com/
THANK YOU I WAS LOOKING FOR THIS
No problem buddy! I'm planning on updating this so it takes a bit longer to answer the questions but it can give you longer streaks (achievement grinding).

upload_2020-5-27_14-28-38.png
 
I did about 20k grains and no issues yet. I noticed that after a while, the logs pile up and lag a lot, if you are updating it I would recommend mentioning that one can remove the instances of "console.log" to forget the logs.

Also I made a Youtube video about the script, I can't link the video because of new account, but please just tell me if you would want me to take it down.
 
Nice to see a fusion of Tech and humanitarian services. I just hope it gets to the right people, and not get embezzled by those insatiable leaders of Third World countries.
 
Removed The console logs from printing and increased the delay between answers so you can get bigger streaks at the cost of time.
Code:
//
//
//
//      _   ___              ____  _              ____        __
//     / | / (_)_______     / __ \(_)_______     / __ )____  / /_
//    /  |/ / / ___/ _ \   / /_/ / / ___/ _ \   / __  / __ \/ __/
//   / /|  / / /__/  __/  / _, _/ / /__/  __/  / /_/ / /_/ / /_
//  /_/ |_/_/\___/\___/  /_/ |_/_/\___/\___/  /_____/\____/\__/
//
// Made By Neil Master/Yeehawlerz101
// Github: https://github.com/Yeehawlerz101/NiceRiceBot
//  Notes: Make sure to leave your ad blocker off so that 'freerice' can have some sort of income :)
// How to use: Make an account, sign in all that fun stuff, then go to the categories and click multiplacation tables
// Then when the page loads, go to the console of your web browser and paste the code in the console and enjoy!
const interval = setInterval(function() {
    var problem = document.getElementsByClassName("card-title");
    for (var i = 0; i < problem.length; i++) {
        var prob = problem[i].innerText;
        var pr = prob.replace(" x ", "-");
        var splits =  pr.split("-",2)
        var answer = splits[0]*splits[1]
        // console.log(answer)
    }
    var a = document.getElementsByClassName('card-button')[0].innerText;
    b = document.getElementsByClassName('card-button')[1].innerText;
    c = document.getElementsByClassName('card-button')[2].innerText;
    d = document.getElementsByClassName('card-button')[3].innerText;
  /*  console.log(a)
    console.log(b)
    console.log(c)
    console.log(d)

    console.log("The Answer Should be: " + answer)
    these were causing the browser to lag and crash eventually
   */

    if (a == answer) {
        document.getElementsByClassName('card-button')[0].click();
    }
    else if (b == answer){
        document.getElementsByClassName('card-button')[1].click();
    }
    else if (c == answer){
        document.getElementsByClassName('card-button')[2].click();
    }
    else  if (d == answer){
        document.getElementsByClassName('card-button')[3].click();
    } else {
       console.log("No Answer Found")
    }
}, 6000 /* Milisecconds to wait to the answer 1000 = 1 second 6000 works the best as it gives the animations time to reset*/);
 
Status
Not open for further replies.
Back
Top