hacks-Reverb

Auto Seacher

当前为 2023-05-16 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name hacks-Reverb
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.2
  5. // @license MIT
  6. // @description Auto Seacher
  7. // @author You
  8. // @match https://www.bing.com/*=hacks-*
  9. // @match https://www.bing.com/search?FORM=U523DF&PC=U523&q=hacks-*
  10. // @match https://www.bing.com/search?q=hacks-*
  11. // @match https://rewards.bing.com/*
  12. // @icon https://www.google.com/s2/favicons?sz=64&domain=bing.com
  13. // @grant none
  14. // ==/UserScript==
  15.  
  16. (async function() {
  17. 'use strict';
  18. if(document.URL !== "https://rewards.bing.com/"){
  19. //Daily Pole
  20. fetch("https://www.bing.com/msrewards/api/v1/ReportActivity", {
  21. "headers": {
  22. "accept": "*/*",
  23. "accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
  24. "content-type": "text/plain;charset=UTF-8",
  25. "sec-ch-ua": "\"Chromium\";v=\"112\", \"Google Chrome\";v=\"112\", \"Not:A-Brand\";v=\"99\"",
  26. "sec-ch-ua-arch": "\"\"",
  27. "sec-ch-ua-bitness": "\"64\"",
  28. "sec-ch-ua-full-version": "\"112.0.5615.137\"",
  29. "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\"",
  30. "sec-ch-ua-mobile": "?1",
  31. "sec-ch-ua-model": "\"Nexus 5\"",
  32. "sec-ch-ua-platform": "\"Android\"",
  33. "sec-ch-ua-platform-version": "\"6.0\"",
  34. "sec-fetch-dest": "empty",
  35. "sec-fetch-mode": "cors",
  36. "sec-fetch-site": "same-origin"
  37. },
  38. "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",
  39. "referrerPolicy": "origin-when-cross-origin",
  40. "body": "{\"ActivitySubType\":\"quiz\",\"ActivityType\":\"notification\",\"OfferId\":\"Gamification_DailySet_20230516_Child3\",\"Channel\":\"Bing.Com\",\"PartnerId\":\"BingTrivia\",\"Timezone\":-120}",
  41. "method": "POST",
  42. "mode": "cors",
  43. "credentials": "include"
  44. });
  45. //
  46. setInterval(()=>{
  47. fetch("https://www.bing.com/rewardsapp/reportActivity?IG=B616D3E0928B4F90B9C768AAFA4511FF&IID=SERP.5059&FORM=U523DF&PC=U523&q=hacks-"+Math.random(), {
  48. "headers": {
  49. "accept": "*/*",
  50. "accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
  51. "content-type": "application/x-www-form-urlencoded",
  52. "sec-ch-ua": "\"Chromium\";v=\"112\", \"Google Chrome\";v=\"112\", \"Not:A-Brand\";v=\"99\"",
  53. "sec-ch-ua-arch": "\"arm\"",
  54. "sec-ch-ua-bitness": "\"64\"",
  55. "sec-ch-ua-full-version": "\"112.0.5615.137\"",
  56. "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\"",
  57. "sec-ch-ua-mobile": "?0",
  58. "sec-ch-ua-model": "\"\"",
  59. "sec-ch-ua-platform": "\"macOS\"",
  60. "sec-ch-ua-platform-version": "\"13.3.1\"",
  61. "sec-fetch-dest": "empty",
  62. "sec-fetch-mode": "cors",
  63. "sec-fetch-site": "same-origin"
  64. },
  65. "referrer": "https://www.bing.com/search?FORM=U523DF&PC=U523&q=hacks-"+Math.random(),
  66. "referrerPolicy": "origin-when-cross-origin",
  67. "body": "url=https%3A//www.bing.com/search%3FFORM%3DU523DF%26PC%3DU523%26q%3Dhacks-"+Math.random()+"&V=web",
  68. "method": "POST",
  69. "mode": "cors",
  70. "credentials": "include"
  71. });
  72. setTimeout(()=>{
  73. fetch("https://www.bing.com/rewardsapp/reportActivity?FORM=U523DF&PC=U523&q=hacks-"+Math.random(), {
  74. "headers": {
  75. "accept": "*/*",
  76. "accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
  77. "content-type": "application/x-www-form-urlencoded",
  78. "sec-ch-ua": "\"Chromium\";v=\"112\", \"Google Chrome\";v=\"112\", \"Not:A-Brand\";v=\"99\"",
  79. "sec-ch-ua-arch": "\"\"",
  80. "sec-ch-ua-bitness": "\"64\"",
  81. "sec-ch-ua-full-version": "\"112.0.5615.137\"",
  82. "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\"",
  83. "sec-ch-ua-mobile": "?1",
  84. "sec-ch-ua-model": "\"Nexus 5\"",
  85. "sec-ch-ua-platform": "\"Android\"",
  86. "sec-ch-ua-platform-version": "\"6.0\"",
  87. "sec-fetch-dest": "empty",
  88. "sec-fetch-mode": "cors",
  89. "sec-fetch-site": "same-origin"
  90. },
  91. "referrer": "https://www.bing.com/search?FORM=U523DF&PC=U523&q=hacks-"+Math.random(),
  92. "referrerPolicy": "origin-when-cross-origin",
  93. "body": "url=https%3A//www.bing.com/search%3FFORM%3DU523DF%26PC%3DU523%26q%3Dhacks-"+Math.random()+"&V=web",
  94. "method": "POST",
  95. "mode": "cors",
  96. "credentials": "include"
  97. });
  98. },500)
  99. },1000)
  100. }else{
  101. //Daily Pole
  102. var response = await fetch("https://rewards.bing.com/")
  103. var html = await response.text()
  104. var requestVerificationToken = await html.split('<input name="__RequestVerificationToken" type="hidden" value="')[1].split('"')[0]
  105. fetch("https://rewards.bing.com/api/reportactivity?X-Requested-With=XMLHttpRequest", {
  106. "headers": {
  107. "accept": "application/json, text/javascript, */*; q=0.01",
  108. "accept-language": "en-GB,en-US;q=0.9,en;q=0.8",
  109. "content-type": "application/x-www-form-urlencoded; charset=UTF-8",
  110. "correlation-context": "v=1,ms.b.tel.market=pt-BR",
  111. "sec-ch-ua": "\"Chromium\";v=\"112\", \"Google Chrome\";v=\"112\", \"Not:A-Brand\";v=\"99\"",
  112. "sec-ch-ua-arch": "\"\"",
  113. "sec-ch-ua-bitness": "\"64\"",
  114. "sec-ch-ua-full-version": "\"112.0.5615.137\"",
  115. "sec-ch-ua-mobile": "?1",
  116. "sec-ch-ua-model": "\"Nexus 5\"",
  117. "sec-ch-ua-platform": "\"Android\"",
  118. "sec-ch-ua-platform-version": "\"6.0\"",
  119. "sec-fetch-dest": "empty",
  120. "sec-fetch-mode": "cors",
  121. "sec-fetch-site": "same-origin"
  122. },
  123. "referrer": "https://rewards.bing.com/",
  124. "referrerPolicy": "strict-origin-when-cross-origin",
  125. "body": "id=Gamification_DailySet_20230516_Child1&hash=ed8c1d362129508304ee2c79c1b60902e6d3944d914820fe0970c176dac3e8e1&timeZone=120&activityAmount=1&__RequestVerificationToken="+await requestVerificationToken,
  126. "method": "POST",
  127. "mode": "cors","credentials": "include"});
  128. //
  129. }
  130. })();