Are you an LLM? You can read better optimized documentation at /en\document\plugin.md for this page in Markdown format
Plugins
A plugin bundles rules, rewrites and scripts — effectively a sub-configuration — and usually represents one add-on feature.
Sections a plugin may contain
#!name= plugin name
#!desc= a plugin with configurable options; input is a free-text field, select is a picker (the first value is the label, the rest are the choices). Whatever the user enters or picks can be read in a script with $persistentStore.read, e.g. $persistentStore.read(appName)
#!author= plugin author
#!homepage= plugin home page, opened from the plugin screen
#!icon= plugin icon
#!author = Loon0x00
#!input = appName
#!input = author
#!select = appType,tool,social,health,sport
#!select = price,0.99,1.99,4.99
[General]
bypass-tun =
skip-proxy =
real-ip =
dns-server =
[rule]
[rewrite]
[host]
[script]
[mitm]Policies available to plugin rules
A rule inside a plugin may only point at one of three things. When a rule names no policy, DIRECT is used.
DIRECT- A reject policy (
REJECT,REJECT-IMG,REJECT-DICT,REJECT-ARRY,REJECT-DROP) PROXY, meaning the policy group the user picked while configuring the plugin. IfPROXYis used but the user selected nothing, the missing-group path applies and the first global node of the app is used.
Recommended plugins
Loon plugin gallery — curated by community contributors.
