All Projects → FirefoxBar → Userscript

FirefoxBar / Userscript

Greasemonkey 脚本

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Userscript

Github Dark Script
Archived - Please use https://github.com/StylishThemes/GitHub-Dark directly
Stars: ✭ 578 (+631.65%)
Mutual labels:  userscript
Automail
An enhancement collection for anilist.co
Stars: ✭ 34 (-56.96%)
Mutual labels:  userscript
Nxenhanced
Adds "quality-of-life" features to NextDNS website for a more practical usability
Stars: ✭ 58 (-26.58%)
Mutual labels:  userscript
Musescore Downloader
Download sheet music (MSCZ, PDF, MusicXML, MIDI, MP3, download individual parts as PDF) from musescore.com for free, no login or Musescore Pro required | 免登录、免 Musescore Pro,免费下载 musescore.com 上的曲谱 | Installation: https://msdl.librescore.org/install.user.js
Stars: ✭ 678 (+758.23%)
Mutual labels:  userscript
E Hentai Downloader
Download E-Hentai archive as zip file
Stars: ✭ 836 (+958.23%)
Mutual labels:  userscript
Github Userscripts
Userscripts to add functionality to GitHub
Stars: ✭ 1,011 (+1179.75%)
Mutual labels:  userscript
Yawf
药方 Yet Another Weibo Filter 用户脚本,微博过滤和版面改造等 userscript, filter weibo and modify layout
Stars: ✭ 562 (+611.39%)
Mutual labels:  userscript
Ltkdifmu Userscript
No more Audio and Visual ads. Allows AFK, Allows AdBlock, on all radios from AudioAddict including www.di.fm and more.
Stars: ✭ 74 (-6.33%)
Mutual labels:  userscript
Irccloud Sws
✏️ Enables text styles in IRCCloud
Stars: ✭ 17 (-78.48%)
Mutual labels:  userscript
Giveawaycompanion
Saves your time on games giveaway sites.
Stars: ✭ 59 (-25.32%)
Mutual labels:  userscript
Ehsyringe
E 站注射器,将中文翻译注入到 E 站体内
Stars: ✭ 759 (+860.76%)
Mutual labels:  userscript
Bilibili Evolved
强大的哔哩哔哩增强脚本
Stars: ✭ 10,368 (+13024.05%)
Mutual labels:  userscript
Google Search Sidebar
A user script and user style to move Google search tools to sidebar.
Stars: ✭ 46 (-41.77%)
Mutual labels:  userscript
Pixivuserbatchdownload
P站画师个人作品批量下载工具,UserScript + Aria2。可高度自定义重命名,发送到本地或远程(如路由器)下载。
Stars: ✭ 603 (+663.29%)
Mutual labels:  userscript
Userscript Plus
🐒 Show current site all UserJS,The easier way to install UserJs for Tampermonkey. 显示当前网站的所有可用Tampermonkey脚本
Stars: ✭ 1,142 (+1345.57%)
Mutual labels:  userscript
Malsync
Integrates MyAnimeList/AniList/Kitsu/Simkl into various sites, with auto episode tracking.
Stars: ✭ 572 (+624.05%)
Mutual labels:  userscript
Userscript
🔨 自用的一些乱七八糟 油猴脚本~ ⭐冲刺 1k⭐!冲呀!
Stars: ✭ 962 (+1117.72%)
Mutual labels:  userscript
Userscripts
Userscripts for Greasemonkey, Tampermonkey etc.
Stars: ✭ 78 (-1.27%)
Mutual labels:  userscript
Userscripts
My userscripts
Stars: ✭ 67 (-15.19%)
Mutual labels:  userscript
Particle
Home of the extension YouTube Plus that allows you to experience more on YouTube
Stars: ✭ 1,057 (+1237.97%)
Mutual labels:  userscript

用户脚本列表

开发说明

  • 代码修改请在main分支上进行。
  • GM头信息请写在各个脚本下的meta.yml文件中。Yaml语法可参考这里
  • 可以使用这个工具将原有的GM头信息转为Yaml格式。
  • 提交后CI会自动build并发布。

使用NPM开发

基本说明

  • 进入你的脚本目录,使用npm初始化。各类参数可自由指定。
  • 如果需要,可以在脚本目录下进一步安装npm依赖。
  • 新建入口文件,在其中编写脚本代码。
    • 如果你想要使用TypeScript,则新建src/index.ts
    • 如果你想要使用普通JS,则新建src/index.js
  • 编写过程中,运行npm run dev 你的目录名称,例如npm run dev Putian_Warning,即可启动自动编译,在你的目录下生成脚本代码,并会随着你的修改自动重新编译。
  • 编写完成后,运行编译命令,即可在你的目录下生成脚本代码。
    • 如果需要未经压缩的,请运行npm run build-dev 你的目录名称,例如npm run build-dev Putian_Warning
    • 如果需要优化后的,请运行npm run build 你的目录名称,例如npm run build Putian_Warning。这个版本会进行tree shaking,减小脚本体积。

使用样式

编译工具内置了CSS Module支持。因此,你可以直接编写CSS文件,并且不需要担心样式冲突的问题。但注意在meta.yml中申请GM_addStyle权限。

首先新建一个CSS,例如src/index.css,写入以下内容:

.my-button {
  color: red;
}

在你的脚本中,可以这样使用:

import { locals } from './index.css';

const button = document.createElement('button');
button.className = locals['my-button'];
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].