All Projects → mdn → addon-sdk-content-scripts

mdn / addon-sdk-content-scripts

Licence: CC0-1.0 License
DEPRECATED | Use WebExtensions instead | Add-ons demonstrating how to use content scripts in the Add-on SDK.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to addon-sdk-content-scripts

Msx
JSX for Mithril.js 0.x
Stars: ✭ 370 (+1508.7%)
Mutual labels:  deprecated, unmaintained
Vagrant Librarian Chef
*UNMAINTAINED* A Vagrant plugin to install Chef cookbooks using Librarian-Chef.
Stars: ✭ 80 (+247.83%)
Mutual labels:  deprecated, unmaintained
Axe Cli
[Deprecated] A command-line interface for the aXe accessibility testing engine
Stars: ✭ 419 (+1721.74%)
Mutual labels:  deprecated, unmaintained
Miniproxy
🚨⚠️ UNMAINTAINED! ⚠️🚨 A simple PHP web proxy.
Stars: ✭ 810 (+3421.74%)
Mutual labels:  deprecated, unmaintained
jade-babel
Jade plugin for Babel
Stars: ✭ 39 (+69.57%)
Mutual labels:  deprecated, unmaintained
React Heatpack
A 'heatpack' command for quick React development with webpack hot reloading
Stars: ✭ 354 (+1439.13%)
Mutual labels:  deprecated, unmaintained
React Axe
[DEPRECATED] Accessibility auditing for React.js applications
Stars: ✭ 1,201 (+5121.74%)
Mutual labels:  deprecated, unmaintained
Deprecated Mapbox Ios Sdk
REPLACED – use https://www.mapbox.com/ios-sdk instead
Stars: ✭ 325 (+1313.04%)
Mutual labels:  deprecated, unmaintained
Cudlr
⛔️ [DEPRECATED] Console for Unity Debugging and Logging Remotely
Stars: ✭ 167 (+626.09%)
Mutual labels:  deprecated, unmaintained
Tgcameraviewcontroller
Custom camera with AVFoundation. Beautiful, light and easy to integrate with iOS projects.
Stars: ✭ 1,432 (+6126.09%)
Mutual labels:  deprecated, unmaintained
Framework7 With Angularjs Demo App
⛔️ Unmaintained and deprecated!
Stars: ✭ 81 (+252.17%)
Mutual labels:  deprecated, unmaintained
passion
An object-oriented LÖVE game engine
Stars: ✭ 35 (+52.17%)
Mutual labels:  deprecated, unmaintained
django-snow
ServiceNow Ticket Management App for Django based projects
Stars: ✭ 16 (-30.43%)
Mutual labels:  deprecated, unmaintained
cleverbot
Deprecated/unmaintained. See https://www.cleverbot.com/api/
Stars: ✭ 23 (+0%)
Mutual labels:  deprecated, unmaintained
Kwicks
⛔ Kwicks for jQuery - fork of jQuery Kwicks by Jeremy Martin
Stars: ✭ 50 (+117.39%)
Mutual labels:  deprecated
2015-foia-hub
A consolidated FOIA request hub.
Stars: ✭ 47 (+104.35%)
Mutual labels:  unmaintained
react-native-apple-sign-in
Apple Signin for your React Native applications
Stars: ✭ 16 (-30.43%)
Mutual labels:  deprecated
react-infinity-menu
A react component that displays an unlimited deep menu
Stars: ✭ 59 (+156.52%)
Mutual labels:  deprecated
keyple-java
Eclipse Keyple™ Project: deprecated repository embedding all components of the Java implementation until version 1.0.0
Stars: ✭ 17 (-26.09%)
Mutual labels:  deprecated
HAN-pytorch
(Deprecated) Hierarchical Attention Networks for Document Classification (https://www.cs.cmu.edu/~diyiy/docs/naacl16.pdf) - in Pytorch
Stars: ✭ 39 (+69.57%)
Mutual labels:  deprecated

This repository contains example add-ons that show how to use content scripts in the Add-on SDK. Most of these examples are taken from the content scripts documentation: https://developer.mozilla.org/en-US/Add-ons/SDK/Guides/Content_Scripts.

Note that although all these examples should work fine and are complete runnable add-ons, they're not intended to be production quality. For example, they might omit error handling or not clean up after themselves.

You're welcome to add more examples! If you do, please update the list below with a link to the example, a very short description of what the example is demonstrating, and a list of the main modules it uses.

Index of examples

page-mod-content-script-file
Use contentScriptFile to pass a content script stored as a separate file.

page-mod-content-script-insulation
Show how content scripts and page scripts can't directly access each other.

page-mod-content-script-string
Use contentScript to pass a content script as a string.

page-mod-content-script-two-scripts
Use contentScript to pass two content scripts as strings.

page-mod-content-script-two-scripts-jquery
Pass two scripts, one as a file, one as a string.

page-mod-customevent-from-content-script
Use custom DOM events to send a message from a content script to a page script.

page-mod-customevent-from-page-script
Use custom DOM events to send a message from a page script to a content script.

page-mod-port
Listen for attach to get a reference to a page-mod's worker, then use port to communicate between the main add-on and a content script. Uses: page-mod.

page-mod-port-json

Send JSON objects with port.

page-mod-unsafewindow
Content script using unsafeWindow to access variables defined in a page script.

page-mod-windowpostmessage-from-content-script
Use window.postMessage to send a message from a content script to a page script.

page-mod-windowpostmessage-from-page-script
Use window.postMessage to send a message from a content script to a page script.

page-worker-button-once
Use port.once() to receive only the first occurrence of a message.

page-worker-button-removelistener
Use port.removeListener() to stop listening for messages.

page-worker-port
Use port to communicate between the main add-on and a content script.

page-worker-x-domain-iframes
Grant a content script cross-domain privileges, using the cross-domain-content option under the permissions key, and use that to access content from a different domain inside an iframe.

page-worker-x-domain-xhr
Grant a content script cross-domain privileges, using the cross-domain-content option under the permissions key, and use that to execute cross-domain XHR. Note that this example requires an API key from the Met Office DataPoint service.

tabs-button-port
Use port to communicate between the main add-on code and a content script.

tabs-cloneinto
Use cloneInto to share an object from a content script to a page script.

tabs-content-script-options
Provide configuration options to a content script with contentScriptOptions.

tabs-content-script-string
Pass a content script as a string.

tabs-createobjectin
Use createObjectIn to create a new object in a page script scope, from a content script.

tabs-exportfunction
Use exportFunction to share a function from a content script to a page script.

tabs-port
Use port to communicate between the main add-on code and a content script.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].