Skip to content

Commit f71c1f7

Browse files
author
Nick Holmes
authored
Add more info
1 parent 551b871 commit f71c1f7

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# Userscript helpers
2-
Some helper functions for userscripts.
2+
Some helper functions for userscripts, including:
3+
* applyCss - A more robust alternative to [GM_addStyle](https://wiki.greasespot.net/GM_addStyle)
4+
* More to come...
35

46
### Usage examples
57
Add to your userscript's [metadata block](https://wiki.greasespot.net/Metadata_Block):
6-
`// @require https://cdn.rawgit.com/HatScripts/UserscriptHelpers/3c55360a/applyCss.min.js`
7-
8+
```javascript
9+
// @require https://cdn.rawgit.com/HatScripts/UserscriptHelpers/3c55360a/applyCss.min.js
10+
```
11+
And then call it like so:
12+
```javascript
13+
applyCss('body { color: white; background-color: black; } img { border: 0; }');
14+
```
15+
or
816
```javascript
917
applyCss(`
1018
body {

0 commit comments

Comments
 (0)