Skip to content

Commit

Permalink
Anpassungen für addons.mozilla.org
Browse files Browse the repository at this point in the history
  • Loading branch information
dieterds committed Jul 8, 2015
1 parent acf04f5 commit 1338380
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 26 deletions.
3 changes: 0 additions & 3 deletions chrome/content/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ iitk.cse.cs213.bytubed.services = {
downloadManager : Components.classes["@mozilla.org/download-manager;1"]
.getService(Components.interfaces.nsIDownloadManager),

// downloadManagerUI: Components.classes["@mozilla.org/download-manager-ui;1"]
// .getService(Components.interfaces.nsIDownloadManagerUI),

promptService : Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
.getService(Components.interfaces.nsIPromptService),

Expand Down
10 changes: 5 additions & 5 deletions chrome/content/queueingStatusManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ iitk.cse.cs213.bytubed.queueingStatusManager = {
onLoad: function onLoad(event)
{
var iccb = iitk.cse.cs213.bytubed;
var strings = document.getElementById("strings");
var strings = document.getElementById("bytubedstrings");

try
{
Expand Down Expand Up @@ -146,7 +146,7 @@ iitk.cse.cs213.bytubed.queueingStatusManager = {
updateProgress: function updateProgress()
{
var iccb = iitk.cse.cs213.bytubed;
var strings = document.getElementById("strings");
var strings = document.getElementById("bytubedstrings");

try
{
Expand Down Expand Up @@ -219,7 +219,7 @@ iitk.cse.cs213.bytubed.queueingStatusManager = {
{
var htmlString = "";
var iccb = iitk.cse.cs213.bytubed;
var strings = document.getElementById("strings");
var strings = document.getElementById("bytubedstrings");

try
{
Expand Down Expand Up @@ -316,7 +316,7 @@ iitk.cse.cs213.bytubed.queueingStatusManager = {
prepareWatchLinksFile: function prepareWatchLinksFile()
{
var iccb = iitk.cse.cs213.bytubed;
var strings = document.getElementById("strings");
var strings = document.getElementById("bytubedstrings");

try
{
Expand Down Expand Up @@ -422,7 +422,7 @@ iitk.cse.cs213.bytubed.queueingStatusManager = {
launchDownloadLinksFile: function launchDownloadLinksFile()
{
var iccb = iitk.cse.cs213.bytubed;
var strings = document.getElementById("strings");
var strings = document.getElementById("bytubedstrings");

try
{
Expand Down
4 changes: 2 additions & 2 deletions chrome/content/queueingStatusManager.xul
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
<script src = "downloadQueueManager.js" />
<script src = "queueingStatusManager.js"/>

<stringbundleset id="stringbundleset">
<stringbundle id="strings" src="chrome://BYTubeD/locale/BYTubeD.properties"/>
<stringbundleset id="bytubedstringbundleset">
<stringbundle id="bytubedstrings" src="chrome://BYTubeD/locale/BYTubeD.properties"/>
</stringbundleset>

<keyset>
Expand Down
16 changes: 8 additions & 8 deletions chrome/content/selectionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ iitk.cse.cs213.bytubed.selectionManager = {
var currentDocument = window.arguments[0];
var browsers = window.arguments[1];

var strings = document.getElementById("strings");
var strings = document.getElementById("bytubedstrings");
var links = new Array();

var scanCB = document.getElementById("scanClipboard").checked;
Expand Down Expand Up @@ -786,7 +786,7 @@ iitk.cse.cs213.bytubed.selectionManager = {
try
{
var selMgr = iccb.selectionManager;
var strings = document.getElementById("strings");
var strings = document.getElementById("bytubedstrings");

var vidCount = 0;
var treeChildren = document.getElementById("treeChildren");
Expand Down Expand Up @@ -927,7 +927,7 @@ iitk.cse.cs213.bytubed.selectionManager = {
setTitleUsingInfo: function setTitleUsingInfo(selMgr, info, url)
{
var iccb = iitk.cse.cs213.bytubed;
var strings = document.getElementById("strings");
var strings = document.getElementById("bytubedstrings");

try
{
Expand Down Expand Up @@ -1003,7 +1003,7 @@ iitk.cse.cs213.bytubed.selectionManager = {
setFieldsCommonCode: function setFieldsCommonCode(selMgr, vid, swf_map, failureString)
{
var iccb = iitk.cse.cs213.bytubed;
var strings = document.getElementById("strings");
var strings = document.getElementById("bytubedstrings");

try
{
Expand Down Expand Up @@ -1497,7 +1497,7 @@ iitk.cse.cs213.bytubed.selectionManager = {
onBrowse: function onBrowse(event)
{
var iccb = iitk.cse.cs213.bytubed;
var strings = document.getElementById("strings");
var strings = document.getElementById("bytubedstrings");

try
{
Expand All @@ -1524,7 +1524,7 @@ iitk.cse.cs213.bytubed.selectionManager = {
onBrowseSubtitles: function onBrowseSubtitles(event)
{
var iccb = iitk.cse.cs213.bytubed;
var strings = document.getElementById("strings");
var strings = document.getElementById("bytubedstrings");
try
{
var Cc = Components.classes;
Expand All @@ -1550,7 +1550,7 @@ iitk.cse.cs213.bytubed.selectionManager = {
onSelect: function onSelect(event)
{
var iccb = iitk.cse.cs213.bytubed;
var strings = document.getElementById("strings");
var strings = document.getElementById("bytubedstrings");

try
{
Expand All @@ -1573,7 +1573,7 @@ iitk.cse.cs213.bytubed.selectionManager = {
onStart: function onStart(event)
{
var iccb = iitk.cse.cs213.bytubed;
var strings = document.getElementById("strings");
var strings = document.getElementById("bytubedstrings");

try
{
Expand Down
4 changes: 2 additions & 2 deletions chrome/content/selectionManager.xul
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
<script src = "downloadQueueManager.js" />
<script src = "selectionManager.js"/>

<stringbundleset id="stringbundleset">
<stringbundle id="strings" src="chrome://BYTubeD/locale/BYTubeD.properties"/>
<stringbundleset id="bytubedstringbundleset">
<stringbundle id="bytubedstrings" src="chrome://BYTubeD/locale/BYTubeD.properties"/>
</stringbundleset>

<keyset>
Expand Down
Binary file added data/Down-64.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 icon.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 removed icons/default/BYTubeD.ico
Binary file not shown.
5 changes: 3 additions & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ var button = buttons.ActionButton({
icon: {
"16": self.data.url("Down-16.png"),
"24": self.data.url("Down-24.png"),
"32": self.data.url("Down-32.png")
"32": self.data.url("Down-32.png"),
"64": self.data.url("Down-64.png")
},
onClick: handleClick
});

function handleClick(state) {
function handleClick(state) {
var { viewFor } = require("sdk/view/core");
// get the XUL tab that corresponds to this high-level tab
var tab = tabs.activeTab;
Expand Down
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
"title": "BYTubeD - Bulk YouTube video Downloader",
"id": "bytubed@cs213.cse.iitk.ac.in",
"description": "BYTubeD is a Bulk YouTube video Downloader. It can be used to batch download all/selected YouTube videos on any page which has some links to YouTube videos, by clicking the BYTubeD menu item in the Tools menu or in the context menu.",
"main": "lib/main.js",
"author": "M S Ram",
"homepage": "http://msram.github.com/bytubed/",
"contributors": ["dieterds", "Downloadcode from iaextractor"],
"contributors": [
"dieterds",
"Downloadcode from iaextractor"
],
"license": "MPL 2.0",
"unpack": "true",
"icon": "data/Down-32.png",
"unpack": true,
"icon": "icon.png",
"dependencies": ["menuitems", "addon-sdk"],
"version": "1.2.2"
"version": "1.2.3",
"updateURL": "https://github.com/dieterds/bytubed/raw/master/bytubed.update.rdf"
}

0 comments on commit 1338380

Please sign in to comment.