hacks-Reverb

Auto Seacher

目前為 2023-05-16 提交的版本,檢視 最新版本

// ==UserScript==
// @name         hacks-Reverb
// @namespace    http://tampermonkey.net/
// @version      1.2
// @license      MIT
// @description  Auto Seacher
// @author       You
// @match        https://www.bing.com/*=hacks-*
// @match        https://www.bing.com/search?FORM=U523DF&PC=U523&q=hacks-*
// @match        https://www.bing.com/search?q=hacks-*
// @match        https://rewards.bing.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bing.com
// @grant        none
// ==/UserScript==

(async function() {
    'use strict';
if(document.URL !== "https://rewards.bing.com/"){
//Daily Pole
fetch("https://www.bing.com/msrewards/api/v1/ReportActivity", {
  "headers": {
    "accept": "*/*",
    "accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
    "content-type": "text/plain;charset=UTF-8",
    "sec-ch-ua": "\"Chromium\";v=\"112\", \"Google Chrome\";v=\"112\", \"Not:A-Brand\";v=\"99\"",
    "sec-ch-ua-arch": "\"\"",
    "sec-ch-ua-bitness": "\"64\"",
    "sec-ch-ua-full-version": "\"112.0.5615.137\"",
    "sec-ch-ua-full-version-list": "\"Chromium\";v=\"112.0.5615.137\", \"Google Chrome\";v=\"112.0.5615.137\", \"Not:A-Brand\";v=\"99.0.0.0\"",
    "sec-ch-ua-mobile": "?1",
    "sec-ch-ua-model": "\"Nexus 5\"",
    "sec-ch-ua-platform": "\"Android\"",
    "sec-ch-ua-platform-version": "\"6.0\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin"
  },
  "referrer": "https://www.bing.com/search?q=worlds%20greatest%20museums&rnoreward=1&mkt=EN-US&skipopalnative=true&form=ML17QA&filters=PollScenarioId:%22POLL_ENUS_RewardsDailyPoll_20230516%22%20BTROID:%22Gamification_DailySet_20230516_Child3%22%20BTROEC:%220%22%20BTROMC:%2210%22",
  "referrerPolicy": "origin-when-cross-origin",
  "body": "{\"ActivitySubType\":\"quiz\",\"ActivityType\":\"notification\",\"OfferId\":\"Gamification_DailySet_20230516_Child3\",\"Channel\":\"Bing.Com\",\"PartnerId\":\"BingTrivia\",\"Timezone\":-120}",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});
//
setInterval(()=>{
fetch("https://www.bing.com/rewardsapp/reportActivity?IG=B616D3E0928B4F90B9C768AAFA4511FF&IID=SERP.5059&FORM=U523DF&PC=U523&q=hacks-"+Math.random(), {
  "headers": {
    "accept": "*/*",
    "accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
    "content-type": "application/x-www-form-urlencoded",
    "sec-ch-ua": "\"Chromium\";v=\"112\", \"Google Chrome\";v=\"112\", \"Not:A-Brand\";v=\"99\"",
    "sec-ch-ua-arch": "\"arm\"",
    "sec-ch-ua-bitness": "\"64\"",
    "sec-ch-ua-full-version": "\"112.0.5615.137\"",
    "sec-ch-ua-full-version-list": "\"Chromium\";v=\"112.0.5615.137\", \"Google Chrome\";v=\"112.0.5615.137\", \"Not:A-Brand\";v=\"99.0.0.0\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-model": "\"\"",
    "sec-ch-ua-platform": "\"macOS\"",
    "sec-ch-ua-platform-version": "\"13.3.1\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin"
  },
  "referrer": "https://www.bing.com/search?FORM=U523DF&PC=U523&q=hacks-"+Math.random(),
  "referrerPolicy": "origin-when-cross-origin",
  "body": "url=https%3A//www.bing.com/search%3FFORM%3DU523DF%26PC%3DU523%26q%3Dhacks-"+Math.random()+"&V=web",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});
setTimeout(()=>{
fetch("https://www.bing.com/rewardsapp/reportActivity?FORM=U523DF&PC=U523&q=hacks-"+Math.random(), {
  "headers": {
    "accept": "*/*",
    "accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
    "content-type": "application/x-www-form-urlencoded",
    "sec-ch-ua": "\"Chromium\";v=\"112\", \"Google Chrome\";v=\"112\", \"Not:A-Brand\";v=\"99\"",
    "sec-ch-ua-arch": "\"\"",
    "sec-ch-ua-bitness": "\"64\"",
    "sec-ch-ua-full-version": "\"112.0.5615.137\"",
    "sec-ch-ua-full-version-list": "\"Chromium\";v=\"112.0.5615.137\", \"Google Chrome\";v=\"112.0.5615.137\", \"Not:A-Brand\";v=\"99.0.0.0\"",
    "sec-ch-ua-mobile": "?1",
    "sec-ch-ua-model": "\"Nexus 5\"",
    "sec-ch-ua-platform": "\"Android\"",
    "sec-ch-ua-platform-version": "\"6.0\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin"
  },
  "referrer": "https://www.bing.com/search?FORM=U523DF&PC=U523&q=hacks-"+Math.random(),
  "referrerPolicy": "origin-when-cross-origin",
  "body": "url=https%3A//www.bing.com/search%3FFORM%3DU523DF%26PC%3DU523%26q%3Dhacks-"+Math.random()+"&V=web",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});
},500)
},1000)
}else{
//Daily Pole
var response = await fetch("https://rewards.bing.com/")
var html = await response.text()
var requestVerificationToken = await html.split('<input name="__RequestVerificationToken" type="hidden" value="')[1].split('"')[0]
fetch("https://rewards.bing.com/api/reportactivity?X-Requested-With=XMLHttpRequest", {
  "headers": {
    "accept": "application/json, text/javascript, */*; q=0.01",
    "accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
    "content-type": "application/x-www-form-urlencoded; charset=UTF-8",
    "correlation-context": "v=1,ms.b.tel.market=pt-BR",
    "sec-ch-ua": "\"Chromium\";v=\"112\", \"Google Chrome\";v=\"112\", \"Not:A-Brand\";v=\"99\"",
    "sec-ch-ua-arch": "\"\"",
    "sec-ch-ua-bitness": "\"64\"",
    "sec-ch-ua-full-version": "\"112.0.5615.137\"",
    "sec-ch-ua-mobile": "?1",
    "sec-ch-ua-model": "\"Nexus 5\"",
    "sec-ch-ua-platform": "\"Android\"",
    "sec-ch-ua-platform-version": "\"6.0\"",
    "sec-fetch-dest": "empty",
    "sec-fetch-mode": "cors",
    "sec-fetch-site": "same-origin"
  },
  "referrer": "https://rewards.bing.com/",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "id=Gamification_DailySet_20230516_Child1&hash=ed8c1d362129508304ee2c79c1b60902e6d3944d914820fe0970c176dac3e8e1&timeZone=120&activityAmount=1&__RequestVerificationToken="+await requestVerificationToken,
  "method": "POST",
  "mode": "cors","credentials": "include"});
//
}
})();