test script

test script 1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         test script
// @version      1
// @description  test script 1
// @author       test
// @match        http://*.pro11.net/*
// @match        https://*.pro11.net/*
// @grant        none
// @namespace https://greasyfork.org/en/users/397101-zenek-kowalski
// ==/UserScript==

(function() {
    'use strict';
    setTimeout(function(){
    console.log('Tundra example loaded');
    window.mods.aHeal.timer = 150;
    window.setMods('aHeal', window.mods.aHeal.on); /*No way to just save timer so I save something else to save timer*/
    setInterval(function(){window.send('ch', 'Cool chat example');}, 1000);/* sending chats*/
    function place(id, rot){
      window.send('5', id, null);
      window.send('c', 1, rot);
      window.send('c', 0, rot);
    }
    document.addEventListener('keydown', function(e){
        if(document.activeElement.id.toLowerCase() == 'chatbox')return;
        switch (e.keyCode) {
            case 86: place(window.items[2], 0); place(window.items[2], 1.55); place(window.items[2], 3.1); place(window.items[2], -1.55);break;/*click v = quad spike*/
        }
    })}, 1000);//Use setTimeout so it injects after all the window varables have been loaded
})();