TorcAddons-watch-json-file

provides a watch.json button, to spawn a watch.json file, and set it's contents automatically to that to be compatible with torcAddons-ManualUpdate

Tính đến 17-01-2020. Xem phiên bản mới nhất.

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.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

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         TorcAddons-watch-json-file
// @namespace    http://torcado.com
// @description  provides a watch.json button, to spawn a watch.json file, and set it's contents automatically to that to be compatible with torcAddons-ManualUpdate
// @author       torcado and J-Tech-Foundation
// @license      MIT
// @icon         http://torcado.com/torcAddons/icon.png
// @run-at       document-start
// @grant        none
// @include      http*://glitch.com/edit/*
// @version 0.0.1.20200117001912
// ==/UserScript==
(function () {
    let t = torcAddons;
    t.addEventListener("load", () => {
        let f1 = $('<div class="torc-update">add-json</div>').insertAfter($('.show-app-wrapper'));
        console.log("1234")
        f1.on("click", function () {
            let FI = application.fileByPath("watch.json");
            if (!FI) {
                FI = application.newFile("watch.json");
            }
            application.writeToFile(FI, `{
                "install": {
                  "include": [
                    "^.torc-update"
                  ]
                },
                "throttle": 10
              }`)
        })
    });

 
})