Kesuksesan

mencari dia seorang

  1. // ==UserScript==
  2. // @name Kesuksesan
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.8
  5. // @description mencari dia seorang
  6. // @match https://*/*
  7. // @grant none
  8. // ==/UserScript==
  9. (function() {
  10. 'use strict';
  11. var targetURL = "https://id.arahlink.com/ijXD3";
  12. var targetURL1 = "https://id.arahlink.com/jHJ0";
  13. // Set the delay in milliseconds before redirecting
  14. var delay = 5000;
  15. // Check if the current URL matches the target site
  16. if (window.location.href.startsWith("https://nguli-online.me/")) {
  17. // Create a countdown element
  18. var countdown = document.createElement("div");
  19. countdown.style.position = "fixed";
  20. countdown.style.top = "10px";
  21. countdown.style.right = "10px";
  22. countdown.style.padding = "10px";
  23. countdown.style.border = "1px solid black";
  24. countdown.style.backgroundColor = "white";
  25. countdown.style.zIndex = "9999";
  26. countdown.innerHTML = "Redirecting to " + targetURL + " in <span id='timer'></span> seconds";
  27. // Append the countdown element to the body
  28. document.body.appendChild(countdown);
  29. // Get the timer element
  30. var timer = document.getElementById("timer");
  31. // Set the initial timer value
  32. timer.innerHTML = delay / 1000;
  33. // Start the countdown function
  34. var countdownFunc = setInterval(function() {
  35. // Decrease the timer value by 1
  36. timer.innerHTML = parseInt(timer.innerHTML) - 1;
  37. // If the timer reaches 0, clear the interval and redirect to the target URL
  38. if (timer.innerHTML == 0) {
  39. clearInterval(countdownFunc);
  40. window.location.href = targetURL;
  41. }
  42. }, 1000); // Execute the function every 1 second
  43. }
  44. // Check if the current URL matches https://id.arahlink.com/
  45. if (window.location.href.startsWith("https://id.arahlink.com/ijXD3")) {
  46. function elementExists(query) {
  47. return document.querySelector(query) !== null;
  48. }
  49. function click(query) {
  50. document.querySelector(query).click();
  51. }
  52. function clickIfElementExists(query, timeInSec = 1) {
  53. if (elementExists(query)) {
  54. setTimeout(function() {
  55. click(query);
  56. }, timeInSec * 1000);
  57. }
  58. }
  59. // Call the function to click a button with class btn btn-primary if it exists
  60. clickIfElementExists('.btn.btn-primary');
  61. // Fungsi untuk mencari elemen a dengan teks "Dapatkan tautan"
  62. function findLinkElement() {
  63. var links = document.getElementsByTagName("a");
  64. for (var i = 0; i < links.length; i++) {
  65. var link = links[i];
  66. var text = link.textContent.trim();
  67. if (text === "Dapatkan tautan") {
  68. link.textContent = "SUKSES";
  69. return link;
  70. }
  71. }
  72. return null;
  73. }
  74. setInterval(function() {
  75. var link = findLinkElement();
  76. if (link) {
  77. setTimeout(function() {
  78. window.location.href = "https://nguli-online.me?safelink_redirect=eyJzZWNvbmRfc2FmZWxpbmtfdXJsIjoiaHR0cHM6XC9cL2RpcmVrcnV0LmNvbSIsInNhZmVsaW5rIjoiaHR0cHM6XC9cL2lkLmFyYWhsaW5rLmNvbVwvakhKMCJ9";
  79. }, 1000);
  80. }
  81. }, 1000);
  82. }
  83. if (window.location.href.startsWith("https://www.direkrut.com/")) {
  84. // Create a countdown element
  85. var countdown = document.createElement("div");
  86. countdown.style.position = "fixed";
  87. countdown.style.top = "10px";
  88. countdown.style.right = "10px";
  89. countdown.style.padding = "10px";
  90. countdown.style.border = "1px solid black";
  91. countdown.style.backgroundColor = "white";
  92. countdown.style.zIndex = "9999";
  93. countdown.innerHTML = "Redirecting to " + targetURL1 + " in <span id='timer'></span> seconds";
  94. // Append the countdown element to the body
  95. document.body.appendChild(countdown);
  96. // Get the timer element
  97. var timer = document.getElementById("timer");
  98. // Set the initial timer value
  99. timer.innerHTML = delay / 1000;
  100. // Start the countdown function
  101. var countdownFunc = setInterval(function() {
  102. // Decrease the timer value by 1
  103. timer.innerHTML = parseInt(timer.innerHTML) - 1;
  104. // If the timer reaches 0, clear the interval and redirect to the target URL
  105. if (timer.innerHTML == 0) {
  106. clearInterval(countdownFunc);
  107. window.location.href = targetURL1;
  108. }
  109. }, 1000); // Execute the function every 1 second
  110. }
  111. if (window.location.href.startsWith("https://id.arahlink.com/jHJ0")) {
  112. function elementExists(query) {
  113. return document.querySelector(query) !== null;
  114. }
  115. function click(query) {
  116. document.querySelector(query).click();
  117. }
  118. function clickIfElementExists(query, timeInSec = 1) {
  119. if (elementExists(query)) {
  120. setTimeout(function() {
  121. click(query);
  122. }, timeInSec * 1000);
  123. }
  124. }
  125. // Call the function to click a button with class btn btn-primary if it exists
  126. clickIfElementExists('.btn.btn-primary');
  127. // Fungsi untuk mencari elemen a dengan teks "Dapatkan tautan"
  128. function findLinkElement1() {
  129. var links = document.getElementsByTagName("a");
  130. for (var i = 0; i < links.length; i++) {
  131. var link = links[i];
  132. var text = link.textContent.trim();
  133. if (text === "Dapatkan tautan") {
  134. link.textContent = "SUKSES";
  135. return link;
  136. }
  137. }
  138. return null;
  139. }
  140. setInterval(function() {
  141. var link = findLinkElement1();
  142. if (link) {
  143. setTimeout(function() {
  144. window.location.href = "https://id.arahlink.com/";
  145. }, 1000);
  146. }
  147. }, 1000);
  148. }
  149. // For the other website, redirect on refresh
  150. function redirectOnRefresh() {
  151. if (window.location.hostname === "id.arahlink.com") {
  152. var redirectURL = "https://nguli-online.me/?wpsafelink=JJIQiwMc56wApbsCadfEeFlgiHnikT3E0Rzc5R1BYZSs0VC9yNkw0L3RmOGF5LytlLzdJWDRNUDU0ajNndFlEQT0=&redir=aHR0cHM6Ly9uZ3VsaS1vbmxpbmUubWUv";
  153. if (performance.navigation.type === 1) {
  154. window.location.href = redirectURL;
  155. }
  156. }
  157. }
  158. redirectOnRefresh();
  159. // Check if the current URL matches "id.arahlink.com" without a trailing slash
  160. if (window.location.hostname === "id.arahlink.com" && window.location.pathname === "/") {
  161. function findImg() {
  162. // Mencari elemen img dengan class inserted-btn mtz
  163. var img = document.querySelector("img.inserted-btn.mtz");
  164. // Jika elemen img ditemukan
  165. if (img) {
  166. // Hentikan pencarian
  167. clearInterval(interval);
  168. // Setelah 2 detik
  169. setTimeout(function() {
  170. // Klik elemen img
  171. img.click();
  172. }, 1000);
  173. }
  174. }
  175. // Membuat interval untuk mencari elemen img setiap 1 detik
  176. var interval = setInterval(findImg, 1000);
  177. }
  178. })();
  179.  
  180.  
  181.  
  182.  
  183.