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!

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @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)