Coder Social home page Coder Social logo

jaredhirsch / firefoxnomore404s Goto Github PK

View Code? Open in Web Editor NEW

This project forked from internetarchive/wayback-machine-firefox

0.0 1.0 0.0 419 KB

Reduce annoying 404 pages by automatically checking for an archived copy in the Wayback Machine. Learn more about this Test Pilot experiment at https://testpilot.firefox.com/

License: GNU Affero General Public License v3.0

JavaScript 100.00%

firefoxnomore404s's Introduction

Developing

This is a "WebExtension". See https://developer.mozilla.org/Add-ons/WebExtensions/Your_first_WebExtension

Develop through the web-ext run command.

npm run dev

How to load a zip or xpi file directly into Firefox

  • Upgrade to Firefox 45 or newer
  • Visit about:debugging
  • Click "Load Temporary Add-on"
  • Click "manifest.json"

If something is wrong, it will silently fail. Try removing the add-on, waiting a few seconds, then re-adding.

More info: https://developer.mozilla.org/docs/Tools/about%3Adebugging#Enabling_add-on_debugging

Also:

  1. Open new tab.
  2. Type "about:config".
  3. Enter "xpinstall.signatures.required" in search bar.
  4. Modify value to "false" (just click on it).
  5. Restart Firefox and try install extension again.

Publishing & Signing

The "web-ext" has a command that publishes and signs the extension at the same time. As far as I can tell, there is no way to do these separately. Once a version is published, it cannot be undone, so use with caution.

First update the version (see Places to Update the version).

# This will sign, publish, and update the ./build directory
npm install
npm run sign

Building an unsigned extension

Only use this if you need to produce an unsigned xpi. Use "run" for development

npm run build_unsigned

Places to update the version

  • Changelog.md - update change log
  • src/manifest.json - update version
  • src/scripts/background.js - update header
  • package.json - update header

License

Copyright Internet Archive, 2016 AGPL-3

Credits

firefoxnomore404s's People

Contributors

rchrd2 avatar pdehaan avatar clouserw avatar johngruen avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.