Quick liferestart

快速浏览Liferestart游戏的历程

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         Quick liferestart
// @namespace    http://tampermonkey.net/
// @version      1.0a2
// @description  快速浏览Liferestart游戏的历程
// @author       Linnest
// @include      *://restart.typekuon.com/lifeRestart/view/*
// @include      *://liferestart.syaro.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here..
    var b = document.createElement("button");
    var text = document.createTextNode("快速浏览");
    b.appendChild(text);
    b.className = "mainbtn";
    b.style = "left: 20%;";
    b.onclick = function(){
        if (document.getElementById("lifeTrajectory")){
            for(var num =1;num<500;num++){
                document.getElementById("lifeTrajectory").click()
            }
        }

    };
    if(window.self === window.top){
            if (document.querySelector("body")){
                document.body.appendChild(b);
            } else {
                document.documentElement.appendChild(b);
            }
        }
})();