GitXplorerGitXplorer
r

updateswh

public
15 stars
6 forks
4 issues

Commits

List of commits on branch main.
Unverified
ef403485f25bf69291ffe3c5da5b538a7fbec158

Bump version number

committed a year ago
Unverified
953479db72131f4b5a8b93a8d473f0a2576b78ae

Fix observer logic: remove save icon on GH non project pages

committed a year ago
Unverified
5d4a4c8353cea4d3ca4b735f0584d0d7c3b0d814

Use color codes for orange too

committed a year ago
Unverified
a33d5a1e5c96bda8991f4f1ee3e89e8890370dc4

Remove redundant semicolons

committed a year ago
Unverified
cb9853bcb7529b4b2108513259bc9813d44d544e

Bump version number

committed a year ago
Unverified
cbaaac09bed5ba70d93a9a656ecb852937956d32

Use more explicit constants for color codes

committed a year ago

README

The README file for this repository.

Update Software Heritage browser extension for Chrome, Firefox and Edge

This browser extension checks if a repository visited by the user is archived and uptodate in Software Heritage.

What the extension does

A color button on the right of the browser indicates if it is uptodate (green), in which case clicking on the button opens a tab on the corresponding page of the archive, missing (grey) or not up to date (yellow), in which case clicking on the button triggers a save code now request.

A brown color warns that the last archival visit did not succeed in full, so there may be issues that make archival not straightforward.

An orange color indicates that the SWH rate limit has been hit: one needs to get and add an access token to overcome the limitation.

A red color indicates that the API request of information for the repository did not succeed: this happens typically when one is visiting a repository that is not publicly accessible, and that naturally cannot be archived.

Getting the extension for your browser

For accessing the latest published version of the extension on the Firefox Add-ons, the Chrome Web Store or the Microsoft Edge Add-ons, and more detailed usage instructions, see the webpage at https://www.softwareheritage.org/browser-extensions/

Credits

Many thanks to the Unpaywall extension developers (see https://unpaywall.org/products/extension): their work has been an essential starting point for designing and developing this extension.

Developer information

The code base is meant to be identical between Firefox, Google Chrome and Microsoft Edge. Due to the ongoing transition to manifest version 3, there is currently one difference: for Firefox a manifest.json version 2 is provided, but for Google Chrome and Microsoft Edge one needs to create a package using the version 3 format provided in manifest-v3.json. The toplevel Makefile takes care of the appropriate reshuffling at package creation time.