suizhikuo-VisualEvent

把 https://sprymedia.co.uk/article/Visual+Event+2 官网的 VisualEvent 做成篡改猴脚本

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         suizhikuo-VisualEvent
// @namespace    http://tampermonkey.net/
// @version      2024-04-12
// @description  把 https://sprymedia.co.uk/article/Visual+Event+2 官网的 VisualEvent 做成篡改猴脚本
// @author       suizhikuo
// @match        *://*/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=sprymedia.co.uk
// @grant        none
// @license      MIT
// ==/UserScript==

(function () {
    'use strict';
    // debugger;
    console.log("篡改猴(Tampermonkey)脚本 ---> 加载VisualEvent ---> 完成");

    var protocol = window.location.protocol === 'file:' ? 'http:' : '';
    var url = protocol + '//www.sprymedia.co.uk/VisualEvent/VisualEvent_Loader.js';
    if (typeof VisualEvent != 'undefined') {
        if (VisualEvent.instance !== null) {
            VisualEvent.close();
        } else {
            new VisualEvent();
        }
    } else {
        var n = document.createElement('script');
        n.setAttribute('language', 'JavaScript');
        n.setAttribute('src', url + '?rand=' + new Date().getTime());
        document.body.appendChild(n);
    }
})();