SlashJs

No need for javascript with this library. Use commands inside of elements such as /time, /animate, and more!

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.gf.qytechs.cn/scripts/496001/1382611/SlashJs.js

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
DarkHeart Productions (DarkHeart)
版本
Alpha 1.0.0
建立日期
2024-05-24
更新日期
2024-05-24
尺寸
2.3 KB
授權條款
未知

SlashJs


Slash is in it's name. A library I started a while ago will come back to life. Make JavaScript simple by slashing your code in half, do more, with less. SlashJs also includes another extension that allows you to create or add extensions created by others to SlashJs. If you do not need extensions, there is no need to link them.

SlashExtends current only ability is to load files and read the page. The files will not be ran as there is no code to run extensions yet.

See it in action! open


Key/Usage in JavaScript: slash(args)

Args:

exe to begin looking for commands
update update elements to show live status

Key/Usage in HTML5: /(action) (args)

Actions:

/time shows basic time like on your computer
/timefull shows full time, including seconds

What actions were looking to add:

/animate (classOrSingleStyle) (lengthOfAnimation) (colorOrSizeToChangeTo)
/focus
/loadData (dataId) (objectToLoad)