Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/3axap4ehko/youtool
https://github.com/3axap4ehko/youtool
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/3axap4ehko/youtool
- Owner: 3axap4eHko
- Created: 2014-08-20T21:21:08.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-03T16:40:22.000Z (almost 8 years ago)
- Last Synced: 2024-04-15T15:05:34.180Z (7 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
You Tool Snippets
========#Collection of useful snippets
## 1. Json File structure
```
{
"snippet-name":{
"author": "Snippet Author",
"version": "Snippet Version",
"description":"Snippet description",
"background": ["background script list"],
"content": ["content script list"],
"styles": ["content style list"]
},...
}
```## 2. Description
### 2.1 Background scripts
will be executed in background and allow use chrome extension API.
### 2.2 Content scripts
will be injected in content page and allow modify page.
### 2.2 Content styles
will be injected in content page and allow modify page style.
### 2.4 Background and Content scripts communication
For communication between background and content script you ned to use:+ In background script: [chrome sendMessage API](https://developer.chrome.com/extensions/messaging)
+ In content script: `document.addEventListener('onMessage', function(event){...})` method and look parameters in `event.details`