From: Danny Date: Tue, 30 Mar 2010 20:20:15 +0000 (+0200) Subject: Firefox/Flock Extension: X-Git-Tag: 2.1-alpha-2019-0-29~143 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=89bdb4aa479986c236d18d68b030d0ff7d4e69a1;p=insipid.git Firefox/Flock Extension: * Fixed a bug when getting popular tags * Wider popup post page (800px) * Created an "archives" directory for saving xpi files * Upped the version to 0.0.2.9 (updated install.rdf and inspd_update.xml) --- diff --git a/ff_ext/archives/insipid_firefox_flock_extension_0.0.2.9.xpi b/ff_ext/archives/insipid_firefox_flock_extension_0.0.2.9.xpi new file mode 100644 index 0000000..f60ecd6 Binary files /dev/null and b/ff_ext/archives/insipid_firefox_flock_extension_0.0.2.9.xpi differ diff --git a/ff_ext/archives/latest.xpi b/ff_ext/archives/latest.xpi new file mode 100644 index 0000000..f60ecd6 Binary files /dev/null and b/ff_ext/archives/latest.xpi differ diff --git a/ff_ext/inspd@danny/chrome/inspd/content/inc/globals.js b/ff_ext/inspd@danny/chrome/inspd/content/inc/globals.js index 3aa1462..bc01b1d 100644 --- a/ff_ext/inspd@danny/chrome/inspd/content/inc/globals.js +++ b/ff_ext/inspd@danny/chrome/inspd/content/inc/globals.js @@ -670,7 +670,7 @@ var $alt_Post = { } else if(alphacloud_txt){ $utils.appendjsHTML('Inspd_delintegrate_commontags_found = 1;var Inspd_delintegrate_commontags_found_url=1;',doc); - doc.evaluate("//div[@class='title']",doc,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotItem(0).innerHTML += ''+alphacloud_txt+''; + doc.evaluate("//div[@class='title']",doc,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotItem(0).innerHTML += ''; $utils.appendjs(''+Inspd_BASE_ALTPOST_URL+'altpost_trigger.js',doc) ; } diff --git a/ff_ext/inspd@danny/chrome/inspd/content/inspdoverlay.js b/ff_ext/inspd@danny/chrome/inspd/content/inspdoverlay.js index 8dba269..d78a708 100644 --- a/ff_ext/inspd@danny/chrome/inspd/content/inspdoverlay.js +++ b/ff_ext/inspd@danny/chrome/inspd/content/inspdoverlay.js @@ -9,7 +9,7 @@ var $buttons = { }, open_as_popup: function(url){ - var mypopup = window.open(url,'popuppage','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=400,left=30,top=30'); + var mypopup = window.open(url,'popuppage','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=400,left=30,top=30'); mypopup.focus(); }, diff --git a/ff_ext/inspd@danny/chrome/inspd/content/v2/altpost/altpost_trigger.js b/ff_ext/inspd@danny/chrome/inspd/content/v2/altpost/altpost_trigger.js index 494107b..db716e9 100644 --- a/ff_ext/inspd@danny/chrome/inspd/content/v2/altpost/altpost_trigger.js +++ b/ff_ext/inspd@danny/chrome/inspd/content/v2/altpost/altpost_trigger.js @@ -143,11 +143,19 @@ var $altp = { var txtTagsObj = 'tagPop = ['; //var tagsfromtbl = document.evaluate("//div[@class='alphacloud']",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotItem(0); var tagsfromtbl = document.evaluate("//span[@class='m']",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null); + // hidden_span_Inspd_delintegrate_commontags_found_1 + var tagsfromtbl = document.evaluate("//span[@id='hidden_span_Inspd_delintegrate_commontags_found_1']",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null); + //alert(tagsfromtbl.snapshotLength); // var j = tagsfromtbl.getElementsByTagName('a').length ; - var j = tagsfromtbl.snapshotLength ; + //var j = tagsfromtbl.snapshotLength ; + + var tagsfromtbl_all_anchors = tagsfromtbl.snapshotItem(0).getElementsByTagName('span') ; + var j = tagsfromtbl_all_anchors.length ; + //alert(j); + if (j == 0 ){ var txtTagsObj = 'Inspd_delintegrate_commontags_found = 2'; @@ -156,13 +164,15 @@ var $altp = { for(var i = 0;i(.*)<\/em>/,'')).toLowerCase()+'"'; + ////////////////txtTagsObj +='"'+((tagsfromtbl.snapshotItem(i).innerHTML).replace(/(.*)<\/em>/,'')).toLowerCase()+'"'; + txtTagsObj +='"'+((tagsfromtbl_all_anchors[i].innerHTML).replace(/(.*)<\/em>/,'')).toLowerCase()+'"'; if (i < j-1 ){txtTagsObj += ',';} } txtTagsObj += ']'; // alert(txtTagsObj); } catch(e){ + //alert(e); var txtTagsObj = 'Inspd_delintegrate_commontags_found = 2'; //alert(e); } diff --git a/ff_ext/inspd@danny/install.rdf b/ff_ext/inspd@danny/install.rdf index 5839b75..0b51816 100644 --- a/ff_ext/inspd@danny/install.rdf +++ b/ff_ext/inspd@danny/install.rdf @@ -3,7 +3,7 @@ xmlns:em="http://www.mozilla.org/2004/em-rdf#"> inspd@danny - 0.0.2.8 + 0.0.2.9 diff --git a/ff_ext/utils/inspd_update.xml b/ff_ext/utils/inspd_update.xml index a4d7d20..eb983a1 100644 --- a/ff_ext/utils/inspd_update.xml +++ b/ff_ext/utils/inspd_update.xml @@ -7,7 +7,7 @@ - 0.0.2.8 + 0.0.2.9 @@ -15,7 +15,7 @@ {ec8030f7-c20a-464f-9b0e-13a3a9e97384} 1.5 6.0 - https://neuro-tech.net/insipid/insipid_firefox_flock_extension_0.0.2.8.xpi + https://neuro-tech.net/insipid/insipid_firefox_flock_extension_0.0.2.9.xpi @@ -26,15 +26,15 @@ 0.5 6.0 - https://neuro-tech.net/insipid/insipid_firefox_flock_extension_0.0.2.8.xpi + https://neuro-tech.net/insipid/insipid_firefox_flock_extension_0.0.2.9.xpi - 0.0.2.8 + 0.0.2.9 - https://neuro-tech.net/insipid/insipid_firefox_flock_extension_0.0.2.8.xpi + https://neuro-tech.net/insipid/insipid_firefox_flock_extension_0.0.2.9.xpi