Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danyalaytekin/some-userscripts
https://github.com/danyalaytekin/some-userscripts
half-baked userscript
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/danyalaytekin/some-userscripts
- Owner: danyalaytekin
- License: mpl-2.0
- Created: 2023-03-13T04:20:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-15T09:38:28.000Z (10 months ago)
- Last Synced: 2025-01-28T08:44:00.515Z (8 days ago)
- Topics: half-baked, userscript
- Language: CSS
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Some UserScripts
This repo will assemble some simple UserScripts written for Safari, in particular Safari running the [UserScripts extension by Justin Wasack](https://github.com/quoid/userscripts).
## Notes for myself
- The UserScripts app:
- checks for the same kind of front-matter at `@updateURL` as is present in a script, so this URL might as well be the same as `@downloadURL`, unless the script becomes very large
- doesn't pick up JS scripts with front matter written as `/* {front matter} */` instead of `// front matter`; I don't know whether this is a general rule affecting all clients
- it's fine with CSS files doing this### How to... CSS → JS
#### `some-userstyle.css`
```css
/* ==UserStyle==
@name Some UserStyle
...
==/UserStyle== */body {
display: none;
}
```#### `some-userscript.js`
```js
// ==UserScript==
// @name Some UserScript
// @grant GM.addStyle
// ...
// ==/UserScript==GM.addStyle(`
body {
display: none;
}
`)
```## Related
- [GreasyFork](https://greasyfork.org/en/scripts), a library of UserScripts
- Other people's scripts
- [Mottie](https://github.com/Mottie/GitHub-userscripts)'s for GitHub