Test RP

Test RP123

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/49593/277194/Test%20RP.js

  1. var MIN = 15; // số phút tối thiểu để auto rp
  2. var MAX = 30; // số phút tối đa auto rp
  3. var RANDOM_THOI_GIAN_CLICK = true; //giả lập click giống con người bằng cách random thời gian click
  4.  
  5.  
  6. function randomize(a,b) {
  7. if (!RANDOM_THOI_GIAN_CLICK) {return 0;}
  8. return Math.floor(Math.random() * (b-a)) + a;
  9. }
  10.  
  11. function showMessage() {
  12. $('._5cl4').html("Đã report xong, anh em không cần nhấn <b>Done</b>, tab sẽ tự động report lại sau " + THOI_GIAN_REPORT + " phút. Để chỉnh lại thời gian, xem ở <a target='_blank' href='https://i.imgur.com/4qH45MI.png'>đây</a>");
  13. $('._5cl4').css({"font-size": "18px","color": "red", "text-align": "center","line-height": "1.4"});
  14. }
  15.  
  16. var intv;
  17. var intv2;
  18. //reports personal accounts
  19. if(/100004302963345/i.test(window.location.href)){
  20. console.log('Reporting group function initializing');
  21. $(document).arrive('#pagelet_group_actions i', function(){
  22. setTimeout(function() {
  23. intv = setInterval(function(){$('#pagelet_group_actions i').click();},1000);
  24. $(document).unbindArrive('#pagelet_group_actions i');
  25. },randomize(200,1100));
  26. });
  27.  
  28. $(document).arrive('._54nc[href^="/ajax/report.php"] span', function(){
  29. clearInterval(intv);
  30. setTimeout(function() {
  31. $('._54nc[href^="/ajax/report.php"] span').click();
  32. $(document).unbindArrive('._54nc[href^="/ajax/report.php"] span');
  33. },randomize(1200,2100));
  34. });
  35. $(document).arrive('#nfxQuestionNamedhate span', function(){
  36. setTimeout(function() {
  37. $('#nfxQuestionNamedhate span').click();
  38. setTimeout(function() {
  39. $('#nfx_dialog_continue').click();
  40. },randomize(1200,2100));
  41. $(document).unbindArrive('#nfxQuestionNamedhate span');
  42. },randomize(1200,2100));
  43. });
  44. $(document).arrive('#nfxQuestionNamedrace span', function(){
  45. setTimeout(function() {
  46. $('#nfxQuestionNamedrace span').click();
  47. setTimeout(function() {
  48. $('#nfx_dialog_continue').click();
  49. },randomize(1200,2100));
  50. $(document).unbindArrive('#nfxQuestionNamedrace span');
  51. },randomize(1200,2100));
  52. });
  53. $(document).arrive('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span', function(){
  54. setTimeout(function() {
  55. intv2 = setInterval(function(){$('._16gh[ajaxify^="/ajax/feed/filter_action/nfx_action_execute?action_name=REPORT"] span').click();showMessage();},1000);
  56. setTimeout(function(){clearInterval(intv2);},2100);
  57. },randomize(200,1100));
  58. });
  59. }