shoo-2

shooshoo

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greatest.deepsurf.us/scripts/547936/1652397/shoo-2.js

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         shoo-2
// @namespace    http://tampermonkey.net/
// @version      0.2.3
// @description  shooshoo
// @author       moomoo
// @match        https://splix.io/
// @icon         https://avatars.githubusercontent.com/u/189983996
// @grant        none
// @run-at       document-start
// ==/UserScript==

await(async function () {
    const currentVersion = '0.2.3'
    const cacheBust = Math.floor(Date.now()/(60*1000)) // 60s
    const latest = (await (await fetch(`https://update.greatest.deepsurf.us/scripts/547936/shoo-2.js?v=${cacheBust}`)).text()) //refer to itself without version
    const match = latest.match(/@version\s+([0-9]+\.[0-9]+\.[0-9]+)/);
    const isLatestVersion = match && match[1] === currentVersion;
    if (isLatestVersion){
       console.log('0.2.3');
       // main code here
    } else {
       console.log('recurse to latest version');
       await (new Function("return (async () => { " + latest + " })()"))();
    }
})()