https://github.com/capjamesg/edit-button-extension

A browser extension that adds an edit button to the URL bar if a web page is editable.

https://github.com/capjamesg/edit-button-extension

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.3%) to scientific vocabulary

Keywords

browser-extension editable-web editable-webpages rel-edit
Last synced: 9 months ago · JSON representation

Repository

A browser extension that adds an edit button to the URL bar if a web page is editable.

Basic Info
  • Host: GitHub
  • Owner: capjamesg
  • License: mit
  • Language: JavaScript
  • Default Branch: main
  • Homepage: https://editbutton.net
  • Size: 3.08 MB
Statistics
  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • Open Issues: 1
  • Releases: 0
Topics
browser-extension editable-web editable-webpages rel-edit
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme Funding License

README.md

Edit Button Browser Extension

A browser extension that adds an edit button the URL bar when a page is editable.

The following algorithm is used to determine if a page is editable:

  1. Is there a rel=edit link on the page? If so, choose the href as the edit link to show the user.
  2. Is there a rel=alternate type=application/x-wiki link tag on the page? If so, choose the href as the page edit link.
  3. Are there any links with an anchor text that would indicate a page is editable, like "Edit this page"? If so, choose the first anchor whose text indicates a page is editable. (This step is opt-in in the extension settings).

Install

The Edit Button browser extension is available on:

Review is pending on:

  • Chrome
  • Edge

Safari support is in development.

Example

https://github.com/user-attachments/assets/8b21ece3-5925-4ef5-a49b-e4d419bdecb4

Supported Sites

The following sites have been tested and work well with the Edit Button Browser Extension, in alphabetical order by primary domain:

  • https://wiki.csswg.org/
  • https://indieweb.org/
  • https://microformats.org/wiki/
  • https://wiki.mozilla.org/
  • https://www.w3.org/wiki/
  • https://wiki.whatwg.org/
  • https://www.wikipedia.org/

Security Considerations

Cross-origin edit links

A website may publish a rel=edit link to any origin.

This extension asks the user to confirm that they want to open an edit link if the origin of the edit link is different from the origin of the page they are viewing.

For example, suppose a user is viewing example.com and there is a rel=edit link that points to example.org. The user will be asked to approve example.org as an editing origin for example.com.

Approved and denied origins can be viewed by the user from the extension preferences page.

Release Checklist

  • [ ] Test the extension on:
    • Firefox
    • Chrome
    • Safari (macOS)
    • Safari (iOS)
    • Edge
    • Firefox for Android
  • [ ] The manifest.json and edge_manifest.json version numbers have been updated.
  • [ ] Run build.sh.
  • [ ] Release extension via each distribution channel.

Contributing

Contributions are welcome!

If you have encountered a bug, please open an Issue describing the bug.

If you have an idea for a feature, please open an Issue describing your idea and whether you are willing to submit a Pull Request. Please do not submit a PR without discussing your idea with a Maintainer first.

License

This project is licensed under an MIT License.

Owner

  • Name: James
  • Login: capjamesg
  • Kind: user
  • Location: Scotland
  • Company: @Roboflow

from words, wonder.

GitHub Events

Total
  • Watch event: 2
  • Push event: 16
  • Pull request event: 3
  • Create event: 2
Last Year
  • Watch event: 2
  • Push event: 16
  • Pull request event: 3
  • Create event: 2

Committers

Last synced: 11 months ago

All Time
  • Total Commits: 35
  • Total Committers: 2
  • Avg Commits per committer: 17.5
  • Development Distribution Score (DDS): 0.057
Past Year
  • Commits: 35
  • Committers: 2
  • Avg Commits per committer: 17.5
  • Development Distribution Score (DDS): 0.057
Top Committers
Name Email Commits
capjamesg j****g@j****g 33
Tantek Çelik 4****k 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago