playnano

rewards

目前為 2021-09-10 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name playnano
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description rewards
  6. // @author BBoytech
  7. // @match https://playnano.online/watch-and-learn/*
  8. // @icon https://www.google.com/s2/favicons?domain=playnano.online
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. var claimTimer = setInterval (function() {claim(); }, Math.floor(Math.random() * 500) + 1000);
  14. var claimaTimer = setInterval (function() {claima(); }, Math.floor(Math.random() * 2000) + 3000);
  15. var claimbTimer = setInterval (function() {claimb(); }, Math.floor(Math.random() * 2000) + 3000);
  16. var claimcTimer = setInterval (function() {claimc(); }, Math.floor(Math.random() * 100) + 300);
  17. var claimdTimer = setInterval (function() {claimd(); }, Math.floor(Math.random() * 1000) + 2000);
  18.  
  19. // click on the next vidoe button
  20. function claim(){
  21. if(window.location.href == "https://playnano.online/watch-and-learn/nano/captcha") {
  22. }
  23. else
  24. {
  25. document.getElementsByClassName("button btn-primary watch-next-btn")[0].click();
  26. }
  27. }
  28. //close ads
  29. function claima(){
  30. document.getElementsByClassName("_9k9omwe")[0].click();
  31. }
  32. //close ads
  33. function claimb(){
  34. document.getElementsByClassName("pl-d4b76db898bed07320419c0b48d1d7f1__close")[0].click();
  35. }
  36. // start a new one
  37. function claimc(){
  38. if(window.location.href == "https://playnano.online/watch-and-learn/nano/captcha") {
  39. document.getElementsByClassName("noty_body")[0].click();
  40. location.href = "https://playnano.online/watch-and-learn/nano";
  41. }
  42. else
  43. {
  44. }
  45.  
  46. }
  47. // check if adblocker error comes up.
  48. function claimd()
  49. {
  50. document.getElementsByClassName("modal send-nano fade show")[0].click();
  51. var linkTimer = setInterval (function() {linka(); }, Math.floor(Math.random() * 1000) + 1100);
  52. function linka(){
  53. var linka = window.location.href;
  54. location.href = linka;
  55. }
  56. //document.getElementsByClassName("button-darker")[0].click();
  57. }
  58. setInterval(function() {
  59. if (document.querySelector(".h-captcha > iframe").getAttribute("data-hcaptcha-response").length > 0) {
  60. document.querySelector('button[value=keep]').click();
  61. document.querySelector('button[value=keep]').onclick = function() {
  62. setTimeout(function() {
  63. location.href = "https://playnano.online/watch-and-learn/nano";
  64. }, 1000);
  65. }
  66. }
  67. }, 1000);
  68. })();