An open API service indexing awesome lists of open source software.

https://github.com/avindra/useascript

A compendium of userscripts for the Internet. Think dotfiles, but for the Internet.
https://github.com/avindra/useascript

bhagavad-gita github-userscripts twitter-userscript userscript userscript-collection youtube-userscript

Last synced: about 1 month ago
JSON representation

A compendium of userscripts for the Internet. Think dotfiles, but for the Internet.

Awesome Lists containing this project

README

          

# useascript [![ci](https://github.com/avindra/useascript/actions/workflows/cicd.yml/badge.svg)](https://github.com/avindra/useascript/actions/workflows/cicd.yml)

`useascript` is a repository of userscripts for a clearer Internet 🌃

## Name meaning

The name (`use`-`a`-`script`) denotes that the various scripts supporting many websites are loaded from a `single` script. This is done to conveniently manage many userscripts and simplify the development / testing model. At the same time, it eliminates the need for a 3rd party host.

## Install

The userscript is hosted here:

https://dra.vin/useascript/useascript.user.js

It has a corresponding `.meta.js` so updates will work automatically.

## Development

### Method A

This has only been tested with `Tampermonkey > Settings > Security > Modify existing content security policy (CSP) headers` set to `Remove entirely (possibly unsecure)`. Use your favorite local http server (e.g., [python's http.server](https://github.com/avindra/dotfiles/blob/src/.local/bin/http)).

```js
// ==UserScript==
// @name useascript-local
// @namespace https://dra.vin/
// @version 0.1
// @description A compendium of userscripts for the Web
// @author Avindra Goolcharan
// @match *://*/*
// ==/UserScript==
import("http://localhost:5000/index.js");
```

### Method B

Run `make` to build the bundle. It requires `esbuild`. The script will go directly to your clipboard (assuming Wayland) using `wl-copy`. Then, paste the result into your userscript manager's editor. A less cumbersome method is desired, please suggest a better way if you know one!

## License

Brought to you by [Avindra Goolcharan](https://dra.vin/).

The source code is fully licensed under `GPL-3.0-only`. See [COPYING](./COPYING)
for more info.