diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.044/source/chrome/content/common.js releases/unplug-2.045/source/chrome/content/common.js
142c142
< version : 2.044,
---
> version : 2.045,
146c146
< revision : 201103040025,
---
> revision : 201103182323,
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.044/source/chrome/content/display/download.js releases/unplug-2.045/source/chrome/content/display/download.js
358c358
< // call String() explicitly as DTA alters string
---
> // IMPORTANT: call String() explicitly as DTA alters string
363a364,369
>
> // mask is the only reliable way of renaming: the other
> // methods clear the file name following a http 3xx redirect
> "mask" : String(file.leafName), // string. renaming mask == file name
>
> // these other file naming methods are less useful:
365a372
>
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.044/source/chrome/content/display/pop/pop.js releases/unplug-2.045/source/chrome/content/display/pop/pop.js
188c188,199
<
---
>
> report_status_cb : (function (working, result_item) {
> return (function (evt) {
> if (working === null) {
> alert("The following information can be used for debugging:\n\nTraceback:\n" + result_item.trace() + "\n\nKeychain:\n" + result_item.keychain.toSource() + "\n\nHistory:\n" + result_item.history.toSource());
> } else {
> alert("NOT IMPLEMENTED: Send this to server:\n\n" + working + "\n" + result_item.trace());
> }
> evt.stopPropagation();
> });
> }),
>
327c338,341
< this.history = [result.details];
---
>
> // history stores the results we were passed.
> // NOTE: It is not accurate because update() copies data over unset fields
> this.history = [];
344a359,364
> var downloadbutton = this.element.getElementsByTagName("toolbarbutton")[1];
> this.element.addEventListener("click", (function (evt) {
> if (evt.button == 2) {
> downloadbutton.open = true;
> }
> }), false);
358a379,387
> var make_elem = (function (name, callback) {
> var elem = document.createElement("menuitem");
> elem.setAttribute("accesskey", UnPlug2.str(name + ".a"))
> elem.setAttribute("label", UnPlug2.str(name));
> elem.setAttribute("tooltiptext", UnPlug2.str(name + ".tip"));
> elem.addEventListener("command", callback, false);
> return elem
> });
>
368,369c397,398
< var spacer = document.createElement("menuseparator");
< popup.appendChild(spacer);
---
> popup.appendChild(
> document.createElement("menuseparator"));
373d401
< var elem = document.createElement("menuitem");
375,377c403
< elem.setAttribute("accesskey", UnPlug2.str("dmethod." + name + ".a"))
< elem.setAttribute("label", UnPlug2.str("dmethod." + name));
< elem.setAttribute("tooltiptext", UnPlug2.str("dmethod." + name + ".tip"));
---
> var elem = make_elem("dmethod." + name, UnPlug2DownloadMethods.callback(name, this.result))
379d404
< elem.addEventListener("command", UnPlug2DownloadMethods.callback(name, this.result), false);
383a409,414
>
> popup.appendChild(
> document.createElement("menuseparator"));
> popup.appendChild(
> make_elem("trace", UnPlug2SearchPage.report_status_cb(null, this)));
>
404a436
> main_button.setAttribute("disabled", false);
444a477,482
> trace : (function () {
> return this.history.map((function (h) {
> return h.trace;
> })).join("\n");
> }),
>
475,476c513,518
< // XXX TODO: can copy some fields (eg: default title) iff they are unset, even if less certain
<
---
> // can copy some fields (eg: default title) if they are unset, even if less certain
> // NOTE: this is destructive to history!
> result.name = result.name || this.result.name;
> result.description = result.description || this.result.description;
> result.thumbnail = result.thumbnail || this.result.thumbnail;
>
498a541,546
> } else if (!this.result.name || !this.result.description || !this.result.thumbnail) {
> // can copy some fields (eg: default title) if they are unset, even if less certain
> // NOTE: this is destructive to history!
> this.result.name = this.result.name || result.name;
> this.result.description = this.result.description || result.description;
> this.result.thumbnail = this.result.thumbnail || result.thumbnail;
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.044/source/chrome/content/rules.xml releases/unplug-2.045/source/chrome/content/rules.xml
689c689
<
---
>
700a701
> k7="37" v7="very-high"
702c703
< k7="37" v7="${translate:hd_quality} (very high)"
720c722
< quality="${quality.1}" title="${either:title.1:origtitle.innerHTML}" mediaid="${video_id.1}"
---
> quality="${quality.1}" title="${htmldecode:either:title.1:origtitle.innerHTML}" mediaid="${video_id.1}"
746,747c748
<
<
---
>
749,762c750,798
<
<
<
<
<
<
<
<
<
<
<
<
<
<
---
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> url="http://www.youtube.com/profile_ajax?action_ajax=1&user=${urlencode:username.1}&new=1&box_method=load_playlist&box_name=user_playlist_navigator&playlistName=user"
> post="session_token=${optional:urlencode:session.1}&messages=%5B%7B%22type%22%3A%22box_method%22%2C%22request%22%3A%7B%22name%22%3A%22user_playlist_navigator%22%2C%22x_position%22%3A1%2C%22y_position%22%3A-2%2C%22palette%22%3A%22default%22%2C%22method%22%3A%22load_playlist%22%2C%22params%22%3A%7B%22encrypted_playlist_id%22%3A%22${nowplaylist.1}%22%2C%22playlist_name%22%3A%22user%22%2C%22view%22%3A%22play%22%2C%22playlist_sort%22%3A%22date%22%2C%22playlist_sort_direction%22%3A%22desc%22%7D%7D%7D%5D">
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.044/source/chrome/content/search/search.js releases/unplug-2.045/source/chrome/content/search/search.js
241c241
< return "";
---
> return this.traceback().join("::")
249c249
< partial_list = Array("");
---
> partial_list = [];
975c975
< ".url" : url.spec,
---
> ".url" : url.spec, // XXX remove these?
978c978
< ".trace" : rules_xml.getAttribute("id") || "" })
---
> ".trace" : rules_xml.getAttribute("id") ? "#" + rules_xml.getAttribute("id") : "" })
1142c1142
< updated_variables,
---
> new UnPlug2Variables(updated_variables, { ".trace" : "@" + escape(abs_url.spec) }),
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.044/source/chrome/locale/de-DE/strings.txt releases/unplug-2.045/source/chrome/locale/de-DE/strings.txt
59a60,63
> trace=Debug
> trace.a=g
> trace.tip=Show information which can be used for debugging
>
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.044/source/chrome/locale/en-US/strings.txt releases/unplug-2.045/source/chrome/locale/en-US/strings.txt
60a61,64
> trace=Debug
> trace.a=g
> trace.tip=Show information which can be used for debugging
>
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.044/source/chrome/locale/fr-FR/strings.txt releases/unplug-2.045/source/chrome/locale/fr-FR/strings.txt
60a61,64
> trace=Debug
> trace.a=g
> trace.tip=Show information which can be used for debugging
>
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.044/source/chrome/locale/hu-HU/strings.txt releases/unplug-2.045/source/chrome/locale/hu-HU/strings.txt
59a60,63
> trace=Debug
> trace.a=g
> trace.tip=Show information which can be used for debugging
>
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.044/source/chrome/locale/pl-PL/strings.txt releases/unplug-2.045/source/chrome/locale/pl-PL/strings.txt
59a60,63
> trace=Debug
> trace.a=g
> trace.tip=Show information which can be used for debugging
>
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.044/source/chrome/locale/sv-SE/strings.txt releases/unplug-2.045/source/chrome/locale/sv-SE/strings.txt
60a61,64
> trace=Debug
> trace.a=g
> trace.tip=Show information which can be used for debugging
>
diff --new-file --recursive --suppress-common-lines --exclude changes.txt --exclude diff.txt releases/unplug-2.044/source/install.rdf releases/unplug-2.045/source/install.rdf
9c9
< em:version="2.044"
---
> em:version="2.045"
Binary files releases/unplug-2.044/unplug.xpi and releases/unplug-2.045/unplug.xpi differ