This repository has been archived by the owner on Nov 12, 2021. It is now read-only.
-
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.
This is a quick update to make the extension work with the new Youtube API since V2 is deprecated. It also automatically updates the internal data object so that no "subscriptions" are lost
- Loading branch information
NIX
committed
Apr 23, 2015
1 parent
976b829
commit 81a99ae
Showing
9 changed files
with
327 additions
and
126 deletions.
There are no files selected for viewing
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
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,20 @@ | ||
//Firefox - upgrade.js | ||
|
||
//get all strings to translate | ||
var strings = []; | ||
for (var i = 1; i <= 9; i++) | ||
strings.push("errMsg" + i); | ||
|
||
strings.push("lang"); | ||
//translate | ||
self.port.emit("translation", strings); | ||
self.port.once("translation", function(response) { | ||
var translation = response.translation; | ||
//../locales/es/logo.png | ||
$("#logo").css("background-image", "url('./locales/" + translation.lang + "/logo.png')"); | ||
main(response.data, translation, response.addonVersion); | ||
}); | ||
|
||
function main(ExtensionData, translation, addonVersion) { | ||
window.alert('helo'); | ||
} |
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
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
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,33 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title data-l10n-id="optionsHeaderTitle"></title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<link rel="icon" href="images/favicon.ico" type="image/x-icon"/> | ||
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon"/> | ||
<link rel="stylesheet" type="text/css" href="css/options.css"> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div id="header"> | ||
<div id="logo"></div> | ||
<div id="navBar"> | ||
<ul> | ||
<li><a href="#"><span data-l10n-id="homeURL"></span></a></li> | ||
<li><a href="#"><span data-l10n-id="contact"></span></a></li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div id="optionsMenu"> | ||
<!--loading screen--> | ||
<div class="modal" style="display:none"> | ||
<div><span></span><span style="font-weight: bolder" data-l10n-id="YtModbtnAddingTxt"></span></div> | ||
</div> | ||
<h1>Please Wait while we upgrade My Youtube....</h1> | ||
|
||
</div> | ||
<div id="footer">Copyright © <b>Juanix.net</b> 2015</div> | ||
</div> | ||
<script src="js/FileSaver.js"></script> | ||
</body> | ||
</html> |
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
Oops, something went wrong.