Greasy Fork

Lostworld.io Rainbow Hack + Extra Controls

Type the commands in the Info tab in the Lostworld.io chat for results. The wood, stone, food and gold will turn rainbow.

目前为 2021-04-05 提交的版本。查看 最新版本

// ==UserScript==
// @name         Lostworld.io Rainbow Hack + Extra Controls
// @namespace    http://tampermonkey.net/
// @version      0.7
// @description  Type the commands in the Info tab in the Lostworld.io chat for results. The wood, stone, food and gold will turn rainbow.
// @author       Deadly Dotio
// @match        http://*lostworld.io/*
// @grant        none
// ==/UserScript==

function rainbow(id, r = rain){
    var elm = document.getElementById(id);
    elm.style.color = `hsl(${r}, 100%, 50%)`;
}
var rain = 0;
setInterval(function(){
    rainbow('foodDisplay');
    rainbow('woodDisplay');
    rainbow('stoneDisplay');
    rainbow('goldDisplay');
    rainbow('chatInput');
    rainbow('clanDisplay');
    rainbow('createClanName');
    rainbow('createClanButton');
    rainbow('memberDisplay');
    rainbow('leaveClanButton');
    rainbow('loader');
    rain++;
    },);
var css = "h1 { background: blue; }"
var style = document.createElement("style");
style.type = "text/css";
style.appendChild(document.createTextNode(css));
document.head.appendChild(style);

(function() {
    "use strict"
var img = new Image();
img.src = 'path/to/image.jpg';
var holder = document.getElementById('holder');
holder.appendChild(img);
})();

(function() {
    'use strict';

    alert('HERE IS THE SPECIAL COMMAND: /bg ../entity/dragon');
    })();