Giter Site home page Giter Site logo

wooodhead / crxviewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rob--w/crxviewer

0.0 2.0 0.0 1.45 MB

Add-on / web app to view the source code of Chrome / Firefox / Opera 15 extensions and zip files.

Home Page: https://robwu.nl/crxviewer/

JavaScript 94.92% HTML 3.18% CSS 1.80% Shell 0.10%

crxviewer's Introduction

Chrome extension source viewer (CRX Viewer)

View the source code of any Chrome extension in the Chrome Web store without installing it.
https://chrome.google.com/webstore/detail/chrome-extension-source-v/jifpbeccnghkjeaalbbjmodiffmgedin

Also available for Opera and Opera's add-on gallery.
https://addons.opera.com/extensions/details/extension-source-viewer/

And also available for Firefox and addons.mozilla.org (WebExtensions and other Firefox addon types). https://addons.mozilla.org/firefox/addon/crxviewer/

Online demo (select a .crx / .nex / .zip / .xpi from your disk or a URL to try out the viewer):
https://robwu.nl/crxviewer/

Features

This Chrome extension adds a button to right of the omnibox when a CRX file has been detected. By default, this is only enabled on the Chrome Web Store. Upon clicking the button, two actions become available:

  • Download extension as zip file
  • View source

The "View source" option opens a new tab with a simple viewer, with the following features:

  • Download-as-zip and download-as-crx at the upper-right corner.
  • List of file names, and the option to filter files with a regular expression.
  • Find files containing a string, or with content matching a regular expression.
  • Quickly jump between search results, or from/to a specific line.
  • Automatic beautification (formatting) of code
  • Syntax highlighting
  • Image preview
  • Show hashes (md5, sha1, sha256, sha384, sha512) of the file content.
  • View content of embedded zip files.
  • Download Chrome Web Store extensions for a different platform (e.g. Chrome OS or NaCl).
  • View the contents of any URL or zip file.

As mentioned before, this extension activates on the Chrome Web Store by default. It's also possible to view the source code of Chrome, Opera 15+ and Firefox extensions that are hosted elsewhere. Further, there is an option to show a contextmenu entry on links whose target is a Chromium extension. Both features can be toggled at the options page.

The "View source for all extensions" only shows a button when it detects the download of an extension. This detection is implemented through MIME-type sniffing using the declarativeWebRequest API, which is only available to Chromium beta/dev users (though it should soon be available to the general public).

The Firefox addon is implemented as a WebExtension, which is recent technology. See firefox-stuff/compatibility.md for compatibility notes.

Copyright

(c) 2013 - 2016 Rob Wu [email protected] (https://robwu.nl/)

crxviewer's People

Contributors

cyrozap avatar mdamien avatar ngyikp avatar rob--w avatar

Watchers

 avatar  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.