Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avindra/mikiwedia
Wikimedia Userscripts
https://github.com/avindra/mikiwedia
userscript wikimedia-commons wikimedia-tools
Last synced: about 5 hours ago
JSON representation
Wikimedia Userscripts
- Host: GitHub
- URL: https://github.com/avindra/mikiwedia
- Owner: avindra
- License: gpl-3.0
- Created: 2021-07-27T09:19:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-06T22:16:24.000Z (almost 2 years ago)
- Last Synced: 2023-02-28T19:45:49.872Z (over 1 year ago)
- Topics: userscript, wikimedia-commons, wikimedia-tools
- Language: JavaScript
- Homepage:
- Size: 64.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
Usage example:
https://commons.wikimedia.org/wiki/User:Aavindraa/common.js
## Install type
The **rolling release** will update automatically.
Use the other option if you want a specific version.
### 🏎️ Rolling release
Set it up once, and you might just need to do a **hard reload** occasionally to download the new scripts.
Any of the below can be used as the `src` value:
* https://cdn.jsdelivr.net/gh/avindra/mikiwedia@main/index.js (CDN [jsdelivr](https://en.wikipedia.org/wiki/JSDelivr))
* https://avindra.github.io/mikiwedia/index.js ([GitHub Pages](https://en.wikipedia.org/wiki/GitHub_Pages))
* https://dra.vin/mikiwedia/index.js ([GitHub Pages](https://en.wikipedia.org/wiki/GitHub_Pages) via my domain)### 🔢 Specific version
By using jsdelivr, you can specify a version to use. For example, you could pick the `0.2.0` release. Note: don't actually use v0.2.0 as it has known bugs.
* https://cdn.jsdelivr.net/gh/avindra/[email protected]/index.js
## `common.js` code example
This is the code to use in your [`common.js`](https://commons.wikipedia.org/wiki/Special:MyPage/common.js).
In Firefox/Chrome: `ctrl`+`shift`+`i` to use developer console.
```js
const s = document.createElement("script");
s.type = "module";
s.src = '//dra.vin/mikiwedia/index.js';
document.body.appendChild(s);
```Local testing looks more like:
```js
var l = document.createElement("script");
l.type = "module";
l.src = 'https://localhost:8000/index.js';
document.body.appendChild(l);
```## Design
* ES Modules
* Don't add third-party libraries
* Limit use of jQuery and builtins
* Lazy-load bigger modules with [dynamic imports](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#dynamic_imports)## Features
In lieu of an actual feature list, check `releases` for now:
https://github.com/avindra/mikiwedia/releases