Greasy Fork is available in English.

SlashJs

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

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

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

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)