Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian321 committed Aug 4, 2016
0 parents commit 078ecef
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## HTML5FREE
Watch twitch in html5 without turbo.
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.
4 changes: 4 additions & 0 deletions jquery-3.1.0.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/*Main.css*/

.js-menu-html5 {
display: block !important;
}
29 changes: 29 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//Main.js

setTimeout(function () {
$( ".js-html5-slider" ).addClass( "html5free" );

$( ".html5free" ).click(function() {
if (localStorage["backend"] == "\"flash\"") {
localStorage["backend"] = "\"mse\"";
location.reload();
} else if (localStorage["backend"] == "\"mse\"") {
localStorage["backend"] = "\"flash\"";
location.reload();
} else {
localStorage["backend"] = "\"mse\"";
location.reload();
}
});
console.log( "Kappa123" );
//localStorage["backend"] = "\"flash\"";
//localStorage["backend"] = "\"mse\"";
if (localStorage["backend"] == "\"flash\"") {
//alert("no");
} else if (localStorage["backend"] == "\"mse\"") {
//alert("yes");
} else {
localStorage["backend"] = "\"flash\"";
}
$( ".html5free" ).removeClass( "js-html5-slider" );
}, 5555);
40 changes: 40 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"manifest_version": 2,
"name": "html5free",
"description": "Watch twitch in html5 without turbo.",
"version": "1.0",
"icons": {
"16": "icon16.png",
"48": "icon48.png",
"128": "icon128.png"
},
"content_scripts": [
{
"matches": [
"https://*.twitch.tv/*",
"http://*.twitch.tv/*",
"https://twitch.tv/*",
"http://twitch.tv/*"
],
"css": [
"main.css"
],
"js": [
"jquery-3.1.0.min.js",
"main.js"
],
"run_at": "document_idle"
}
],
"permissions": [
"tabs",
"activeTab",
"browsingData",
"cookies",
"webRequest",
"https://*.twitch.tv/*",
"http://*.twitch.tv/*",
"https://twitch.tv/*",
"http://twitch.tv/*"
]
}
6 changes: 6 additions & 0 deletions twitch_player.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Local Storage
www.twitch.tv
backend
"mse" = html5
"flash" = flash

0 comments on commit 078ecef

Please sign in to comment.