-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into export-helpers
* origin/master: (149 commits) Add some icons (#285) add in simple http-response example (#281) convert chrome. to browser. Issue #165 #166 (#262) Update examples.json for contextMenus->menus change (#282) Update context-menu-demo (#272) change shortcut to Ctrl Shift U for commands example (#264) Update `proxy-blocker` extension to be compatible with firefox 56 (#260) Update eslint and .travis.yml (#259) add in titlePreface (#256) Hellosct1 webext (#237) Remove 'highlight', as Firefox does not support it (#252) Reflect bookmark state in icon title to make it accessible to screen readers (#255) Adding listing/descriptions for the imagify and themes examples. (#253) Selfify example (#251) New theme examples (#248) Example: embedded webextension overlay (#249) Add an indexedDB file storage example: image-reference-collector (#224) webextension -> extension (#250) more fields into package.json Add travis-ci build status badge ...
- Loading branch information
Showing
453 changed files
with
8,327 additions
and
1,118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,4 @@ | ||
**/node_modules/** | ||
react-es6-popup/**/dist | ||
mocha-client-tests | ||
store-collected-images/webextension-plain/deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,22 @@ | ||
{ | ||
"root": true, | ||
"parserOptions": { | ||
"ecmaVersion": 6 | ||
}, | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"webextensions": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended" | ||
], | ||
"rules": { | ||
"no-console": 0, | ||
"no-unused-vars": ["warn", { "vars": "all", "args": "all" } ], | ||
"no-undef": ["warn"], | ||
"no-proto": ["error"], | ||
"prefer-arrow-callback": ["warn"], | ||
"prefer-spread": ["warn"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,3 @@ | ||
language: node_js | ||
node_js: stable | ||
sudo: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,4 @@ | ||
Code of conduct | ||
=============== | ||
|
||
This repository is governed by Mozilla's code of conduct and etiquette guidelines. For more details please see the [Mozilla Community Participation Guidelines](https://www.mozilla.org/about/governance/policies/participation/) and [Developer Etiquette Guidelines](https://bugzilla.mozilla.org/page.cgi?id=etiquette.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,11 @@ | ||
# annotate-page | ||
|
||
## What it does | ||
|
||
This example adds a sidebar that lets you take notes on the current web page. The notes are saved to local storage, and the notes for each page are shown again when you open that page again. | ||
|
||
The example also uses the `commands` manifest key to add a keyboard shortcut that opens the sidebar. | ||
|
||
## What it shows | ||
|
||
How to create a sidebar for an add-on. How to associate the sidebar with the currently active tab in that sidebar's window. How to store and restore sidebar content. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,29 @@ | ||
{ | ||
|
||
"manifest_version": 2, | ||
"name": "Web page annotator", | ||
"description": "Displays a sidebar that lets you take notes on web pages.", | ||
"version": "1.0", | ||
"applications": { | ||
"gecko": { | ||
"strict_min_version": "54.0a1" | ||
} | ||
}, | ||
|
||
"sidebar_action": { | ||
"default_icon": "icons/star.png", | ||
"default_title" : "Annotator", | ||
"default_panel": "sidebar/panel.html" | ||
}, | ||
|
||
"permissions": ["storage", "tabs"], | ||
|
||
"commands": { | ||
"_execute_sidebar_action": { | ||
"suggested_key": { | ||
"default": "Ctrl Shift Y" | ||
} | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,32 @@ | ||
html, body { | ||
height: 100%; | ||
width: 100%; | ||
margin: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
height: 90%; | ||
font: caption; | ||
background-color: #F4F7F8; | ||
} | ||
|
||
p { | ||
margin: 1em 2em; | ||
} | ||
|
||
#content { | ||
height: 90%; | ||
margin: 2em 2em 0 2em; | ||
border: .5em solid #DDE4E9; | ||
transition: background-color .2s ease-out; | ||
} | ||
|
||
#content[contenteditable=true] { | ||
background-color: white; | ||
transition: background-color .2s ease-in; | ||
} | ||
|
||
[contenteditable]:focus { | ||
outline: 0px solid transparent; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,15 @@ | ||
<!DOCTYPE html> | ||
|
||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link rel="stylesheet" href="panel.css"/> | ||
</head> | ||
|
||
<body> | ||
<div id = "content"></div> | ||
<p>Click inside the box to start taking notes on this page.</p> | ||
<script src="panel.js"></script> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.