Update README.md
This commit is contained in:
parent
3dff010f07
commit
829ebd0736
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
node_modules
|
node_modules
|
||||||
.web-extension-id
|
.web-extension-id
|
||||||
sign.sh
|
|
||||||
web-ext-artifacts/
|
web-ext-artifacts/
|
||||||
|
sign-firefox-extension.sh
|
||||||
|
|
32
README.md
32
README.md
|
@ -1,30 +1,40 @@
|
||||||
Replaces YouTube comments with random herp derps. Click on the comment text to reveal the original.
|
Replaces YouTube comments with random herp derps. Click on the comment text to reveal the original.
|
||||||
This is modification of github.com/twstokes/herpderp
|
This is a fork of [twstokes/herpderp](https://github.com/twstokes/herpderp) with some modifications.
|
||||||
|
|
||||||
Note: Ignores iframe embedded videos, including the chat replay iframe on YouTube livestream vids.
|
Note: Ignores iframe embedded videos, including the chat replay iframe on YouTube livestream vids.
|
||||||
|
|
||||||
|
**Known bugs**
|
||||||
|
1. As of 2021-03-24, sometimes when showing the original comment the first few lines are missing.
|
||||||
|
This tends to happen when you've transitioned to the page from another video. Refreshing the page
|
||||||
|
tends to fix the problem. I'll eventually try to fix this.
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
**Firefox**
|
**Firefox**
|
||||||
* I have a signed xpi that you can immediately install. Open `build/` and drag the xpi into Firefox.
|
* I have a signed xpi that you can immediately install. Open `build/` and drag the xpi into Firefox.
|
||||||
|
It may take a few seconds for the browser to display the extension installation dialog box.
|
||||||
|
* You can also find the signed Firefox files in the project's [Releases page](https://github.com/sir-pinecone/youtube-herp-derp-browser-extension/releases).
|
||||||
|
|
||||||
**Chrome**
|
**Chrome**
|
||||||
* Unzip the Chrome addon file in the `build` folder.
|
* Go to Chrome extensions page.
|
||||||
* Go to Chrome extensions page. Toggle the developer mode (top-right of page). Click `Load
|
* Toggle the developer mode (top-right of page).
|
||||||
unpacked`.
|
* Click `Load unpacked`.
|
||||||
* Select the unzipped folder.
|
* Select this project's root folder.
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
### Local Testing
|
### Local Testing
|
||||||
|
|
||||||
In Firefox, open about:debugging and click `Load Temporary Add-on...` then select `manifest.json`.
|
* Firefox: open about:debugging and click `Load Temporary Add-on...` then select `manifest.json` file.
|
||||||
file.
|
* Chrome: follow the install steps from above.
|
||||||
|
|
||||||
### Signing and Building
|
## Signing and Building
|
||||||
|
|
||||||
|
### Firefox
|
||||||
* Install web-ext with `$ npm install --global web-ext`
|
* Install web-ext with `$ npm install --global web-ext`
|
||||||
* Generate an unlisted xpi with:
|
* Generate an unlisted xpi with:
|
||||||
'web-ext sign --channel unlisted --api-key <your add-on signing key> --api-secret <your add-on signing secret>`.
|
`web-ext sign --api-key <your JWT issuer> --api-secret <your JWT secret>`
|
||||||
Those keys can be obtained from https://addons.mozilla.org/en-US/developers/addon/api/key/
|
* You can obtain these keys from https://addons.mozilla.org/en-US/developers/addon/api/key/
|
||||||
* Drag downloaded xpi into Firefox.
|
* The signed xpi will be in `web-ext-artifacts/`. Drag this into Firefox to install it.
|
||||||
|
* Alternatively use the private sign-firefox-extension.sh script (not included in the repo) which places the xpi in `build/`.
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -2,7 +2,7 @@
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "YouTube Herp Derp",
|
"name": "YouTube Herp Derp",
|
||||||
"description": "Replaces YouTube comments with herp derps. Forked from github.com/twstokes/herpderp",
|
"description": "Replaces YouTube comments with herp derps. Forked from github.com/twstokes/herpderp",
|
||||||
"homepage_url": "https://michael.is",
|
"homepage_url": "https://github.com/sir-pinecone/youtube-herp-derp-browser-extension",
|
||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
"icons": {
|
"icons": {
|
||||||
"48": "icons/herp48.png",
|
"48": "icons/herp48.png",
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
"run_at": "document_idle",
|
"run_at": "document_idle",
|
||||||
"all_frames": false, // Ignore iframes.
|
"all_frames": false,
|
||||||
"matches": [
|
"matches": [
|
||||||
"https://apis.google.com/*",
|
"https://apis.google.com/*",
|
||||||
"https://plus.googleapis.com/*",
|
"https://plus.googleapis.com/*",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user