]> 91.132.146.200 Git - insipid.git/commitdiff
Firefox/Flock Extension:
authorDanny <dannymiles2@gmaiol.com>
Tue, 30 Mar 2010 20:20:15 +0000 (22:20 +0200)
committerDanny <dannymiles2@gmaiol.com>
Tue, 30 Mar 2010 20:20:15 +0000 (22:20 +0200)
* 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)

ff_ext/archives/insipid_firefox_flock_extension_0.0.2.9.xpi [new file with mode: 0644]
ff_ext/archives/latest.xpi [new file with mode: 0644]
ff_ext/inspd@danny/chrome/inspd/content/inc/globals.js
ff_ext/inspd@danny/chrome/inspd/content/inspdoverlay.js
ff_ext/inspd@danny/chrome/inspd/content/v2/altpost/altpost_trigger.js
ff_ext/inspd@danny/install.rdf
ff_ext/utils/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 (file)
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 (file)
index 0000000..f60ecd6
Binary files /dev/null and b/ff_ext/archives/latest.xpi differ
index 3aa14624eadd2bbe40e51ed68b3919c0050123ac..bc01b1d355742adf7ba0f7de42fab6730890aa01 100644 (file)
@@ -670,7 +670,7 @@ var $alt_Post = {
                                                        }\r
                                                        else if(alphacloud_txt){\r
                                                                $utils.appendjsHTML('Inspd_delintegrate_commontags_found = 1;var Inspd_delintegrate_commontags_found_url=1;',doc);\r
-                                                               doc.evaluate("//div[@class='title']",doc,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotItem(0).innerHTML += '<span style="display:none;">'+alphacloud_txt+'</span>';\r
+                                                               doc.evaluate("//div[@class='title']",doc,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotItem(0).innerHTML += '<span id="hidden_span_Inspd_delintegrate_commontags_found_1" style="display:none;">'+alphacloud_txt+'</span>';\r
                                                                $utils.appendjs(''+Inspd_BASE_ALTPOST_URL+'altpost_trigger.js',doc) ;\r
                                                                \r
                                                        }\r
index 8dba26971ec048a5932eab09ab04445fb58e9312..d78a708e82e4975d193138937ac615753cc8af53 100644 (file)
@@ -9,7 +9,7 @@ var $buttons = {
        },\r
        \r
        open_as_popup: function(url){\r
-       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');\r
+       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');\r
        mypopup.focus();\r
        },\r
        \r
index 494107be43257666de81c995e02e0d086f1732dc..db716e9851b52ebe938ff40acc28417f0e5120e1 100644 (file)
@@ -143,11 +143,19 @@ var $altp = {
                var txtTagsObj = 'tagPop = [';\r
                //var tagsfromtbl = document.evaluate("//div[@class='alphacloud']",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null).snapshotItem(0);\r
                 var tagsfromtbl = document.evaluate("//span[@class='m']",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);\r
+               // hidden_span_Inspd_delintegrate_commontags_found_1\r
+               var tagsfromtbl = document.evaluate("//span[@id='hidden_span_Inspd_delintegrate_commontags_found_1']",document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);\r
+               \r
                \r
                //alert(tagsfromtbl.snapshotLength);\r
                \r
                // var j = tagsfromtbl.getElementsByTagName('a').length ;\r
-               var j = tagsfromtbl.snapshotLength ; \r
+               //var j = tagsfromtbl.snapshotLength ; \r
+               \r
+               var tagsfromtbl_all_anchors = tagsfromtbl.snapshotItem(0).getElementsByTagName('span') ; \r
+               var j = tagsfromtbl_all_anchors.length ;\r
+               //alert(j);\r
+               \r
                \r
                if (j == 0 ){\r
                        var txtTagsObj = 'Inspd_delintegrate_commontags_found = 2';\r
@@ -156,13 +164,15 @@ var $altp = {
                for(var i = 0;i<j;i++){\r
                                //tagsfromtbl.getElementsByTagName('a')[i].setAttribute('onclick','swap(this.innerHTML);return false;');\r
                                //txtTagsObj +='"'+(tagsfromtbl.getElementsByTagName('a')[i].innerHTML).toLowerCase()+'"';\r
-                               txtTagsObj +='"'+((tagsfromtbl.snapshotItem(i).innerHTML).replace(/<em>(.*)<\/em>/,'')).toLowerCase()+'"';\r
+                               ////////////////txtTagsObj +='"'+((tagsfromtbl.snapshotItem(i).innerHTML).replace(/<em>(.*)<\/em>/,'')).toLowerCase()+'"';\r
+                               txtTagsObj +='"'+((tagsfromtbl_all_anchors[i].innerHTML).replace(/<em>(.*)<\/em>/,'')).toLowerCase()+'"';\r
                                if (i < j-1 ){txtTagsObj += ',';}\r
                }\r
                txtTagsObj += ']';\r
                // alert(txtTagsObj);\r
                }\r
                catch(e){\r
+                       //alert(e);\r
                        var txtTagsObj = 'Inspd_delintegrate_commontags_found = 2';\r
                        //alert(e);\r
                }\r
index 5839b753383dfe8ddff6ec7bbc924c731a5dbd61..0b51816ba91b23d56a6617807271d593c35d8ea8 100644 (file)
@@ -3,7 +3,7 @@
      xmlns:em="http://www.mozilla.org/2004/em-rdf#">\r
   <Description about="urn:mozilla:install-manifest">\r
     <em:id>inspd@danny</em:id>\r
-    <em:version>0.0.2.8</em:version>\r
+    <em:version>0.0.2.9</em:version>\r
                <!-- Firefox -->        \r
                <em:targetApplication>\r
                        <Description>\r
index a4d7d20f8053298564021aa5efe5a07e92e64764..eb983a169470bab62b8b6ef11d8b6e9fb892df9f 100644 (file)
@@ -7,7 +7,7 @@
             <r:Seq>\r
                 <r:li>\r
                     <r:Description>\r
-                        <version>0.0.2.8</version>\r
+                        <version>0.0.2.9</version>\r
 \r
                         <!-- Firefox -->\r
                         <targetApplication>\r
@@ -15,7 +15,7 @@
                                 <id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id>\r
                                 <minVersion>1.5</minVersion>\r
                                 <maxVersion>6.0</maxVersion>\r
-                                <updateLink>https://neuro-tech.net/insipid/insipid_firefox_flock_extension_0.0.2.8.xpi</updateLink>\r
+                                <updateLink>https://neuro-tech.net/insipid/insipid_firefox_flock_extension_0.0.2.9.xpi</updateLink>\r
 \r
                             </r:Description>\r
                         </targetApplication>\r
                                 <minVersion>0.5</minVersion>\r
                                 <maxVersion>6.0</maxVersion>\r
 \r
-                                <updateLink>https://neuro-tech.net/insipid/insipid_firefox_flock_extension_0.0.2.8.xpi</updateLink>\r
+                                <updateLink>https://neuro-tech.net/insipid/insipid_firefox_flock_extension_0.0.2.9.xpi</updateLink>\r
                             </r:Description>\r
                         </targetApplication>\r
                     </r:Description>\r
                 </r:li>\r
             </r:Seq>\r
         </updates>\r
-        <version>0.0.2.8</version>\r
+        <version>0.0.2.9</version>\r
 \r
-        <updateLink>https://neuro-tech.net/insipid/insipid_firefox_flock_extension_0.0.2.8.xpi</updateLink>\r
+        <updateLink>https://neuro-tech.net/insipid/insipid_firefox_flock_extension_0.0.2.9.xpi</updateLink>\r
     </r:Description>\r
 </r:RDF>\r