這些是張貼在Sleazy Fork上的腳本需要符合的條件。這是用來確保Sleazy Fork對使用者腳本會是一個安全且有幫助的地方。若是腳本違反這些要求,那將可能被Sleazy Fork的管理員刪除。
功能
- 腳本皆必須包含一段描述其功能的敘述,且腳本不得做出明顯超出該敘述的行為。使用者都應該在安裝腳本前了解它會做些什麼。
- 腳本必須要有被編寫為腳本的理由。例如:只會將使用者導向到一個網站的腳本沒有必要被編寫為腳本,它可以是個連結。而在當前頁面使用其他網站服務的腳本(例如透過某些方式將其轉換)是被允許的。
- Scripts that contain features for the benefit of the author rather than the user (such as tracking, ads, and miners) are allowed, but these must be disclosed with
@antifeature
meta keys. Scripts must not add@include
s or@match
es for the sole purpose adding antifeatures. - The primary functionality of a script must be within the code on Sleazy Fork. A script posted on Sleazy Fork that simply loads the bulk of the script from somewhere else is not allowed. Posting of alternate download URLs, with the intent of having users use the alternate sources instead of the version posted to Sleazy Fork, is not allowed.
代碼
- Code posted to Sleazy Fork must not be obfuscated or minified. Users must be given the opportunity to inspect and understand a script before installing it. If the script is bundled by a tool such as webpack, it must be output in non-minified form, with whitespace and variable names retained.
- Scripts are limited to a size of 2.0 MB. Scripts may not be minified to fit under this limit. If your script is nearing this limit, you may want to consider:
- Moving non-code data such as data URIs or JSON outside of the script.
- Loading libraries using
@require
or with webpack'sexternals
option.
- Libraries that a script uses should be
@require
-d, unless there's a valid technical reason not to do so. In the case that a library is included inline, it must include information as to the source of the library (e.g. a comment indicating URL and/or name and version). - 使用外部 JavaScript 腳本是有限制的。
- Scripts must not check for updates at a rate higher than once per day. Note that most user script managers will handle automatic updates, so doing it in the script is unnecessary. Scripts should also not dynamically inject another Sleazy Fork-hosted script into a page, as this bypasses caching in user script managers.
Listing
- Script authors may not place advertising on pages on Greasy Fork, for example in a script's description. Promotion of the script author's homepage, code repository, Discord, WeChat, etc. is allowed.
- 不得在腳本中提及無關的關鍵字或網站來改善搜尋排名。
- Script authors may not update scripts excessively with the sole purpose of ranking higher on the script list.
- Scripts may not include
@include
s or@match
es for sites they do not provide functionality on. - Scripts' names, descriptions, and other content must be marked with the proper language.
版權
- Your script must respect others' copyrights. This includes the code itself and any resources (for example images) it uses. If you intend on using someone else's content, abide by their licensing terms or get their permission before doing so. Licenses on scripts are specified by the
@license
meta key, and you can learn about what you can and cannot do by using tldrlegal.com. - Even in cases not violating the copyright rule, reposts of scripts that are already on Sleazy Fork are not allowed unless they are improving upon the original.
雜項
- 請勿重新發布因違反規則而被刪除的腳本; 請改用申訴功能。 重新發布已刪除的腳本可能會導致禁止。
If you notice a script that falls outside of these parameters, please report it by going to the Feedback link for that script and choosing the "Report script" option.