MousieBobot

Microsoft Rewards Bot

Jan 22nd, 2024
480
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Microsoft Rewards Bot
  3. // @namespace    http://tampermonkey.net/
  4. // @version      1.1
  5. // @description  I will hack microsoft rewards for you!!! You can also do other stuff while it is running.
  6. // @author       Markie Boo
  7. // @match        *://*/*
  8. // @grant        none
  9. // ==/UserScript==
  10. (function() {
  11.  
  12.     'use strict';
  13.     if (document.readyState == "complete" || document.readyState == "loaded" || document.readyState == "interactive") {
  14.         clickCards()
  15.     } else {
  16.  
  17.         document.addEventListener("DOMContentLoaded", function(event) {
  18.             clickCards()
  19.         });
  20.     }
  21. })();
  22.  
  23. function clickCards(){
  24.     var first = true
  25.     const params = new URLSearchParams(window.location.search)
  26.     if (params.has('searchTab')){
  27.         if (params.get('first') == "true"){
  28.             localStorage.setItem('numSearch', 0);
  29.         }
  30.         var numSearch = localStorage.getItem('numSearch');
  31.         if (numSearch === null){
  32.             numSearch = 0
  33.         }
  34.         localStorage.setItem('numSearch', parseInt(numSearch) + 1);
  35.         console.log(numSearch)
  36.         if (numSearch >= 90){
  37.             close();
  38.         }
  39.     }
  40.     if (window.location.href === "https://rewards.microsoft.com/"){
  41.         window.open("https://www.bing.com/search?q=abc&searchTab=true&first=true", '_blank').focus();
  42.     }
  43.     if (params.has('rnoreward')){
  44.         setInterval(function(){
  45.             if (document.querySelector(".btOption.b_cards")){
  46.                 document.querySelector(".btOption.b_cards").click()
  47.             }
  48.             if (document.getElementById("rqStartQuiz")){
  49.                 document.getElementById("rqStartQuiz").click()
  50.             }
  51.  
  52.             var largeAnswer = document.querySelectorAll(".b_cards")
  53.             if (largeAnswer.length){
  54.  
  55.                 for (let i = 0; i < largeAnswer.length; i++) {
  56.                     if (largeAnswer[i].getAttribute("iscorrectoption") === "True"){
  57.                         largeAnswer[i].click()
  58.                     }
  59.                 }
  60.             }
  61.  
  62.             var smallAnswer = document.querySelectorAll(".rqOption")
  63.             if (smallAnswer.length) {
  64.                 for (let i = 0; i < smallAnswer.length; i++) {
  65.                     smallAnswer[i].click()
  66.                 }
  67.             }
  68.  
  69.         }, 500)
  70.  
  71.  
  72.     }
  73.     var plus10 = document.querySelectorAll(".mee-icon.mee-icon-AddMedium")
  74.     if (plus10){
  75.       var plus10Length = plus10.length
  76.  
  77.       for (let i = 0; i < plus10Length; i++) {
  78.           console.log(plus10[i])
  79.           plus10[i].parentNode.parentNode.parentNode.parentNode.click()
  80.       }
  81.     }
  82.  
  83. }
  84.  
Advertisement
Comments
Add Comment
Please, Sign In to add comment