-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Wendland
committed
Sep 21, 2015
1 parent
e1e27ad
commit 88e4ffe
Showing
5 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,12 @@ | ||
function hidePlayer(){ | ||
try { | ||
document.getElementById('hatchet-yt').style.visibility = "hidden"; | ||
} | ||
catch(err) { | ||
return | ||
} | ||
console.log('YOUTUBE WINDOW HIDDEN'); | ||
document.removeEventListener('DOMSubtreeModified', hidePlayer) | ||
} | ||
|
||
document.addEventListener('DOMSubtreeModified', hidePlayer); |
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,18 @@ | ||
{ | ||
"name": "Hatchet NoTube", | ||
"manifest_version": 2, | ||
"version": "0.0.1", | ||
"description": "Hides the YouTube player window on hatchet.is", | ||
"content_scripts": [ | ||
{ | ||
"matches": [ | ||
"http://*.hatchet.is/*","https://*.hatchet.is/*"], | ||
"js": ["main.js"], | ||
"run_at": "document_end", | ||
"all_frames": true | ||
} | ||
], | ||
"icons": { "16": "icon16.png", | ||
"48": "icon48.png", | ||
"128": "icon128.png" } | ||
} |