Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wendland committed Sep 21, 2015
1 parent e1e27ad commit 88e4ffe
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
Binary file added icon128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions main.js
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);
18 changes: 18 additions & 0 deletions manifest.json
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" }
}

0 comments on commit 88e4ffe

Please sign in to comment.