Git Product home page Git Product logo

lobbyradar-extension's Introduction

Lobbyradar

Lobbyradar is a Browserextension which uses Data available on lobbyradar.opendatacloud.de Lobbyradar is meant to run on Chrome, Safari and Firefox. It is built using the BabelExt Project. BabelExt simplifies cross-browser development of Extensions. It abstracts Message passing between background- and foreground scripts. Background scripts are run in the Context of the Extension. They have access to the extension data, here: settings and lobbydata. Foreground scripts are injected into the current page and can modify the DOM and interact with the UI. BabelExt comes with an unusual Build-Script based on PhantomJS.

I had to modify BabelExt for lobbyradar, so browser abstraction is somewhat lost.

Directories

lib/: Background and Foreground scripts, settings files (settings.json, local_settings.json) test/: Test-Page with many names and an iframe. Serve this directory with a web server to test your extension. build/: Installable Extensions generated by the build script.

Chrome/: the Chrome-Extension. This Directory is modified by the build script. Safari.safariextension/: the Safari extension. Modified by build script and Safaris extensions builder (Info.plist) Firefox/: the Firefox extension. Modified by Build script and Firefox-SDK.

Do not delete the Extension directories! The build script generates only part of the files.

Files

fg_page.js: Injected into the Page. The same for all Browsers bg_*.js: Background Scripts. One Version for Chrome/Safari, different for Firefox.

Background-scripts for Chrome/Safari are modified in lib/. Background-scripts for Firefox are modified in Firefox/.

I strongly recommend to understand the build script.

Build process

Download PhantomJS (http://phantomjs.org), which is used to build and deploy browser-extensions. You need to have the Chrome Browser installed to build the Chrome extension.

In UNIX-based OSes, run ./bin/build.sh

The build system hasn't been tested under Windows yet - your best bet is probably to look at the scripts and write a Windows equivalent. If it's any good, please send in a patch!

IMPORTANT SAFARI NOTE: If the extension directory does not end in ".safariextension", it will not be recognized by Safari. Symlinks inside the extension directory are not allowed.

Instructions for loading/testing an extension in each browser

  • You need to build the package before you start - the initial build process configures some files that aren't stored in git

Chrome / Opera

Firefox

Safari

Releasing packages

You need to release your extension by hand in each Extension store.

LICENSE

MIT (X11) license. See LICENSE.txt

lobbyradar-extension's People

Contributors

agentlame avatar andrew-sayers--frontier-forums avatar cantino avatar cody-young avatar digital-carver avatar honestbleeps avatar kasbah avatar limbogg avatar tymofij avatar victorb avatar wegewerk-mdt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lobbyradar

lobbyradar-extension's Issues

Firefox add-on needs to be signed by Mozilla

Mozilla starts enforcing signatures for Add-Ons ( https://support.mozilla.org/en-US/kb/add-on-signing-in-firefox ). In Firefox 43 it's still possible to run unsigned Add-Ons by changing the entry xpinstall.signatures.required in about:config (which probably already stops most users from using unsigned add-ons). However, starting with 44 there will be no way to run unsigned extensions in regular Firefox releases.

Could you please try to get the Add-On signed by Mozilla?

Privater Modus bei Firefox

Wäre super, wenn ihr demnächst auch den Private Browsing Modus von Firefox unterstützt. Aktuell sorgt bereits die Einstellung "Firefox-Chronik niemals anlegen" (unter Datenschutz) dafür, dass euer Add-on nicht in der Symbolleiste erscheint und somit unbenutzbar ist. Ansonsten ein klasse Add-on :-)

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.