diff --new-file --recursive --suppress-common-lines releases/unplug-1.901/source/chrome/content/common.js releases/200903171938/source/chrome/content/common.js 94c94 < * return the string --- > * return a translated version of the string 100c100 < return "${" + name + "}"; --- > return "#{" + name + "}"; 139c139 < revision : 200908032205, --- > revision : 200903171938, diff --new-file --recursive --suppress-common-lines releases/unplug-1.901/source/chrome/content/config.js releases/200903171938/source/chrome/content/config.js 76c76,81 < w.document.persist("nav-bar","currentset"); --- > if (navtoolbar.getAttribute("currentset")) { > navtoolbar.setAttribute("currentset", navtoolbar.getAttribute("currentset").replace(",unplug2_toolbarbutton", "")); > w.document.persist("nav-bar","currentset"); > } else { > alert("Persist failed"); > } 81c86,91 < w.document.persist("nav-bar","currentset"); --- > if (navtoolbar.currentSet) { > navtoolbar.setAttribute("currentset", navtoolbar.getAttribute("currentset") + ",unplug2_toolbarbutton"); > w.document.persist("nav-bar","currentset"); > } else { > alert("Persist failed"); > } diff --new-file --recursive --suppress-common-lines releases/unplug-1.901/source/chrome/content/overlay.js releases/200903171938/source/chrome/content/overlay.js 32a33,34 > // TODO - don't use a flag, just use: > // window.removeEventListener("load", Flashblock.onInstall, true); 53c55,57 < for each (name in [ "toolsmenu", "contextmenu" ]) { --- > var menus = [ "toolsmenu", "contextmenu" ]; > for (var i = 0 ; i < menus.length; i++) { > var name = menus[i]; 69a74,81 > * Load flashblock workaround, if possible > */ > load_flashblock_workaround : function () { > // TODO - config option here! > > }, > > /** diff --new-file --recursive --suppress-common-lines releases/unplug-1.901/source/chrome/content/rules.xml releases/200903171938/source/chrome/content/rules.xml 2c2 < --- > 6a7 > 83,84c84,85 < < --- > > 116c117 < --- > 121c122 < --- > 126c127 < --- > 138c139 < --- > 154,155c155,156 < < --- > > 157c158 < --- > 188a190,198 > > > > > \.flv(?:\?|$) > > > > 193,194c203 < < --- > (?:filename|url) 209a219,229 > > > > /video(\d+)/ > > > > > > > 288a309,330 > > > > /(\d+) > > > > > > > > > > > > > &amp;flv_url=(.*?)&amp; > &amp;url_bigthumb=(.*?)&amp; > > > > diff --new-file --recursive --suppress-common-lines releases/unplug-1.901/source/chrome/content/search.js releases/200903171938/source/chrome/content/search.js 250a251,258 > case "random": > if (parts.length != 1) > throw "Cannot parse ${random:...}"; > switch (parts[0]) { > case "float": > return Math.random(); > } > throw "Unknown ${random:...} " + parts[0]; 256a265,268 > case "translate": > if (parts.length != 1) > throw "Invalid length for ${translate:...}"; > return UnPlug2.str(parts[0]); diff --new-file --recursive --suppress-common-lines releases/unplug-1.901/source/chrome/content/searchpage.js releases/200903171938/source/chrome/content/searchpage.js 141a142,152 > > var duplicate_elem = reselem.checkDuplicates(reselem.parentNode); > if (duplicate_elem) { > if (!UnPlug2.get_pref("show_duplicates", false)) { > var things_to_copy = ["thumbnail", "description"]; > for (var j=0; j < things_to_copy.length; j++) { > duplicate_elem.setAttribute(things_to_copy[j], duplicate_elem.getAttribute(things_to_copy[j]) || reselem.getAttribute(things_to_copy[j])); > } > reselem.parentNode.removeChild(reselem); > } > } diff --new-file --recursive --suppress-common-lines releases/unplug-1.901/source/chrome/content/widgets/unplug_result.xbl releases/200903171938/source/chrome/content/widgets/unplug_result.xbl 93a94,111 > > > > var thiselem = this; > var reslist = p.getElementsByTagName("unplug_result"); > for (var i=0; i < reslist.length; i++) { > var elem = reslist[i]; > if (elem === thiselem) { > continue; > } > if (elem.url == thiselem.url && elem.post == thiselem.post) { > // this is a duplicate: remove thiselem > return elem; > } > } > return false; > > diff --new-file --recursive --suppress-common-lines releases/unplug-1.901/source/chrome/locale/en-US/config.dtd releases/200903171938/source/chrome/locale/en-US/config.dtd 47c47 < --- > 49,50c49,50 < < --- > > diff --new-file --recursive --suppress-common-lines releases/unplug-1.901/source/chrome/locale/en-US/rules.dtd releases/200903171938/source/chrome/locale/en-US/rules.dtd 1,13d0 < < < < < < < diff --new-file --recursive --suppress-common-lines releases/unplug-1.901/source/chrome/locale/en-US/strings.txt releases/200903171938/source/chrome/locale/en-US/strings.txt 16a17,21 > # for rules.xml > high_quality=High quality > low_quality=Low quality > mid_quality=Normal quality > hd_quality=High definition diff --new-file --recursive --suppress-common-lines releases/unplug-1.901/source/install.rdf releases/200903171938/source/install.rdf 19,20c19,20 < UnPlug 2.0 Alpha < UnPlug 2.0 Developers' version --- > UnPlug > Find and download media from websites diff --new-file --recursive --suppress-common-lines releases/unplug-1.901/source/todo.txt releases/200903171938/source/todo.txt 4c4,6 < Fix pop_contest db -- add date to PK. Fix navigator.useragent. --- > Implement flashblock workaround -- perhaps ? > // flashblock
s have .getAttribute("srcAttribute") for .src > document.getElementsByTagName("div")[0].getAttribute("srcAttribute") 6,7c8,9 < Migration-assistant - add to welcome tab in config < (this should probably be moved to 2.1 because no media player integration, etc) --- > Implement some sort of each_element for .text, not just .doc > This gives us a different flashblock workaround: re-downloading ${.url} 11,14d12 < Fill in .type from filename extension (if none was given) in UnPlug2Search and display/use this hint in UnPlug2SearchPage < < Implement flashblock workaround -- perhaps ? < 17,20d14 < handle exotic types in (mms://, rtsp://, ...) < < Implement s for lots of sites. < 23c17 < Tell people that menu config is applied next restart. --- > Tell people when menu config is applied next restart. 33a28,31 > Migration-assistant - copy media player config > > handle exotic types in (mms://, rtsp://, ...) > 38c36,37 < , + binary downloads --- > Fill in .type from filename extension (if none was given) in UnPlug2Search and display/use this hint in UnPlug2SearchPage > 39a39,42 > For UnPlug 2.2 ["Sprawl"] > ========================= > > , + binary downloads Binary files releases/unplug-1.901/unplug.xpi and releases/200903171938/unplug.xpi differ