Kesuksesan

mencari dia seorang

目前為 2023-09-01 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Kesuksesan
// @namespace   http://tampermonkey.net/
// @version       0.2
// @description   mencari dia seorang
// @match        *://id.arahlink.com/*
// @author        HaxInHere
// @grant         none
// ==/UserScript==

(function() {
    'use strict';

    function redirectOnRefresh() {
    var redirectURL = "https://nguli-online.me/?wpsafelink=JJIQiwMc56wApbsCadfEeFlgiHnikT3E0Rzc5R1BYZSs0VC9yNkw0L3RmOGF5LytlLzdJWDRNUDU0ajNndFlEQT0=&redir=aHR0cHM6Ly9uZ3VsaS1vbmxpbmUubWUv";
if (performance.navigation.type === 1) {
     window.location.href = redirectURL;
        }
    }
    redirectOnRefresh();

    // Fungsi untuk mencari elemen a dengan teks "Dapatkan tautan"
    function findLinkElement() {
        var links = document.getElementsByTagName("a");
        for (var i = 0; i < links.length; i++) {
            var link = links[i];
            var text = link.textContent.trim();
            if (text === "Dapatkan tautan") {
                link.textContent = "SUKSES";
                return link;
            }
        }
        return null;
    }

    // Fungsi untuk membuat elemen div yang berisi pesan melayang
    function createFloatingMessage(message) {
        var div = document.createElement("div");
        div.style.position = "fixed";
        div.style.top = "10px";
        div.style.right = "10px";
        div.style.padding = "10px";
        div.style.backgroundColor = "white";
        div.style.border = "1px solid black";
        div.style.zIndex = "9999";
        div.textContent = message;
        return div;
    }

    function showFloatingMessage(message) {
        var div = createFloatingMessage(message);
        document.body.appendChild(div);
        return div;
    }

    var loadingDots = showFloatingMessage("Mencari");
    var dots = 1;
    setInterval(function() {
        loadingDots.textContent =  '.'.repeat(dots) + "Mencari";
        dots = (dots + 1) % 6;
    }, 500);

    setInterval(function() {
        var link = findLinkElement();
        if (link) {
            loadingDots.style.display = "none"; // Menghilangkan pesan animasi
            setTimeout(function() {
                window.location.href = "https://id.arahlink.com/";
            }, 2000);
        }
    }, 1000);

})();