Magic Userscript+ :显示站点所有 UserJS

显示站点的用户脚本 (UserJS)。 为 Tampermonkey 安装自定义脚本的简单方法。

目前为 2024-03-06 提交的版本。查看 最新版本

作者
magicoflolis
评分
0 0 0
版本
6.5.0
创建于
2021-02-11
更新于
2024-03-06
大小
115.6 KB
兼容性
与 Firefox 兼容 与 Chrome 兼容 与 Opera 兼容 与 Safari 兼容 与 Edge 兼容
许可证
MIT
适用于
所有网站

Magic Userscript+

GitHub License GitHub Release Greasy Fork镜像 Downloads jsDelivr hits (GitHub) GitHub Stars

Fork of Userscript+ : Show Site All UserJS - authors & source code found here

The power of Greasy Fork镜像 on the go! Finds available UserJS for the current webpage, does not work on every webpage

About

Changelog (GitHub)

Finds available UserJS for current webpage from various UserJS hosts (e.g, Greasy Fork镜像), displays a found count bottom right of the webpage, automatically disappears after 10 seconds (can be configured).

Version Link Alternative Note
Userscript Greasy Fork镜像 Install (GitHub) -
Chrome/Edge/Opera GitHub - Work in progress
Firefox GitHub Add-on Store Work in progress

(Optional) Bookmarklet:

Save this URL as a bookmark, clicking it will cause the userscript version to inject itself into the current webpage.

javascript:(function(){['https://cdn.jsdelivr.net/gh/magicoflolis/Userscript-Plus@master/userscript/dist/magic-userjs.user.js'].map(s=>document.body.appendChild(document.createElement('script')).src=s)})();

Previews
Demo 1

Features

  • Designed for mobile and desktop devices
  • Support multiple languages - date formats will match your current language
  • Ability to customize theme
  • Ability to import / export config and theme
  • Ability to filter userscripts
  • Ability to filter userscripts which do not match your current language
  • Ability to query userscripts from any hostname
  • Ability to sort userscripts, default sorting "Daily Installs"
  • Available search engines Greasy Fork镜像, Sleazy Fork, Open UserJS, GitHub ( requires a Personal Access Token, the token does not require any permissions )
  • Built-in userscript Greasyfork Search with Sleazyfork Results include
  • Preview any userscript code before install
  • Save any userscript to local file
  • Highlights which userscripts are created by the author
  • Highlights recommended userscripts from the author

Userscript Features:

Tested and compatible with TamperMonkey and ViolentMonkey

  • Ability to maximize, minimize, or exit the userscript list
  • Ability to change the position of floating counter
  • Sync config with Userscript Manager or choose to have site based configs

Bookmarklet Features:

  • Ability to maximize, minimize, or exit the userscript list
  • Ability to change the position of floating counter
  • Ability to choose to have site based configs

Webextension Features:

  • N/A

FAQ / Troubleshooting

Nothing appears bottom right:

  • Try again on another webpage [Test Page]
  • Default timeout is 10000ms before the count disappears
  • If issue persists, see Viewing UserJS Logs

Error occured while injecting Container:

  • Try again on another webpage [Test Page]
  • This error is caused by the current webpage not supporting attachShadow

Error occurred while loading UserJS for this webpage:

  • Reload the webpage or try again on a different webpage [Test Page]
  • This error may be caused by
    • An error occurred in an enabled search engine while fetching content
    • Script is unable to fetch content on current or all webpages

No available UserJS for this webpage:

  • This error can be caused when no UserJS could be found in enabled search engines
  • If there are known UserJS to exist in enabled search engines, enable Filter out other languages

Viewing UserJS Logs

  • Open your web browsers Inspect Element and navigate to it's Console
  • Locate the following [UserJS] < message > ( you can filter your Console by entering UserJS or [ )
  • Feel free to screenshot any error messages to the GitHub for addition help
  • If nothing appears, this means the script is not executing at all

Development

Code editor used - VSCodium

Install Node.js and pnpm. The version of Node.js should match "node" key in package.json.

# Install dependencies
$ pnpm i

Userscript Version

Desktop version - developed using ViolentMonkey, see How to edit scripts with your favorite editor?

Mobile version - developed using FireFox Developer Edition "Responsive Design Mode" on desktop + cromite app on Android

# Watch and compile to local HTTP server
$ pnpm run dev:UserJS

# Compile UserJS
$ pnpm run pub:UserJS

Webextension Version

# Compile webextension (dev version) for "Chromium" to "./tests/chrome"
$ pnpm run dev:Cr
# Compile webextension (dev version) for "Firefox" to "./tests/chrome"
$ pnpm run dev:FF
# Compile webextension (public version) for "Chromium" to "./tests/chrome"
$ pnpm run webpack:Cr
# Compile webextension (public version) for "Firefox" to "./tests/chrome"
$ pnpm run webpack:FF

# [ Testing ]
# Browsers can be launched via "Run and Debug" in VSCode.
# Edit runtimeExecutable in ".vscode/launch.json" to your Chrome executable.
# Recommended to create an additional profile "about:profiles" for Firefox.

Source Code

Contacts

GitHub

Twitter

Greasy Fork镜像

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址