Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cloventt/qwiki-cite
A browser extension that instantly generates a Wikipedia citation template for the current web page.
https://github.com/cloventt/qwiki-cite
Last synced: about 20 hours ago
JSON representation
A browser extension that instantly generates a Wikipedia citation template for the current web page.
- Host: GitHub
- URL: https://github.com/cloventt/qwiki-cite
- Owner: cloventt
- License: gpl-3.0
- Created: 2023-12-27T21:19:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-30T21:57:13.000Z (8 months ago)
- Last Synced: 2024-04-30T22:28:58.536Z (8 months ago)
- Language: TypeScript
- Size: 975 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# QWiki-Cite
**[Install on Firefox](https://addons.mozilla.org/en-US/firefox/addon/qwiki-cite/)**![](screenshot.png)
This is a tiny browser extension that can automatically generate a Wikipedia `{{citation}}`
template for whatever page you are currently on.## Features
* scrape details of the current page including title, author, published date, etc
* grab the most-recent archive of the page from the Wayback Machine
* escapes reserved characters for you
* quickly copy the template to your clipboard with one button click
* also supports academic journals and booksScraping is done by looking at the current page and parsing the following sources of metadata:
* [schema.org json+ld](https://schema.org/) metadata blobs
* [DCMI](https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#section-2) metadata tags
* a bunch of common HTML `` tags
* other HTML elements## Compatibility
I only bother testing this on Firefox. If you're using Chrome it _might_ work but I don't guarantee it.Automated tests are included for some websites to check that scraping works as expected on them.
The set of supported websites will continue to expand as I develop the extension. Even if a website
isn't directly supported, the extension will work on most websites.## Development
This is written in Typescript and packed with Parcel.Install the project:
```
yarn install
```Watch your local changes and build automatically:
```
yarn watch
```You can then install it in Firefox by going to `about:debugging` and installing a
temporary extension. Firefox even automatically reloads when you make changes!Compile and bundle the project:
```
yarn build
```Run unit tests:
```
yarn test
```