From 4683c246a6b36b877ba9a41d57d70c19b608473c Mon Sep 17 00:00:00 2001 From: Ivan Gualandri Date: Mon, 9 Feb 2015 11:59:15 +0100 Subject: [PATCH 1/9] * Add flattr button image * Add Like it button (to show social link bar) --- images/flattr-badge-large.png | Bin 0 -> 1639 bytes src/popup.html | 19 +++++++++++++++++-- src/popup.js | 3 +++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 images/flattr-badge-large.png diff --git a/images/flattr-badge-large.png b/images/flattr-badge-large.png new file mode 100644 index 0000000000000000000000000000000000000000..1105305850621343d54022dd422415ddf1f659e1 GIT binary patch literal 1639 zcmV-t2AKJYP)t_els_}nNMyeFqp|I+&`C*Q)S_473%8C!<642`wf;WpUb9?&s{RBQi9P}iuC*<{RE8g)9KOwr* zeUgCwig=9xJ+fpsgS9-;Gw3PWLx`<&`^S!{ai!P)%~2{B1Qpr-r!^>F0@{&yy#W2( zC0DkMEYi#*^tXaBr};wMSH8i-6SXMxJ7ZVpq1U=e`e=&9A_wMMAt2ipXDb{f?~75p zA|USvdKHUJI;hZCBemfO>U%DV*6_>OE;*NwOLjO>U~RG<;Y*>r6K@cphZpYRpwC?o z!HmjW+;yAr@{t;B&ah9i_>7gfE5eLA+6b9#-JYU@g@9QuBE$EHHZ`2D4ou zLi}Pxjq=W2C~mV`5_)puuZU6amNZpmSJINXu*(kc&fJD0NfyjOMRqKoQ0WaKmJ2D~ z!No^Yw%~Z46^*%?Ug=vwRoD~*{~SwX8=#-KXd~32?TjWbP}TOPv-?6zcMARFK9=je zr^e8;yC&C3`0~(C=Q(lE-{pVFJku4!;<-m%m@3`^{fmBFe^7utoei}p^xGpXNUA@G zXqBs^8Q{*OC39H~ff#u{fDfu@O=bCos_V_*;x|*1ZN&aORW{6r45uv~Lr35K5DHMvg0mxq2T$AN?XCf%HQx+~R) z^VKM*x(D--skNdOh2A%O1qpQr5T$gLG}T2-G!7?hrWSGv0-d(o?SLRs9S_cO1(#5$MCu z228G#@a3TgXZ^_S>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text-align: right; } + div#social_bar { + display: none; + } #report_bug a:link { color: #006699; font-weight: bold; text-decoration: none; font-size: smaller} #report_bug a:visited { color: #006699; font-weight: bold; text-decoration: none; font-size: smaller} + #social_link a:link { color: #006699; font-weight: bold; text-decoration: none; font-size: smaller} + #social_link a:visited { color: #006699; font-weight: bold; text-decoration: none; font-size: smaller} @@ -48,13 +53,23 @@
- +
-
+
+ + +
+
+
+ Flattr this +
\ No newline at end of file diff --git a/src/popup.js b/src/popup.js index 15418ed..9ac6b12 100755 --- a/src/popup.js +++ b/src/popup.js @@ -28,6 +28,9 @@ function click(e) { }); }); + } else if(e.target.id=="social_button"){ + console.log("Show social bar"); + document.getElementById("social_bar").style.display = 'block'; } } From dd1f40d3dbe2d50bb4b962018c2470df9056652c Mon Sep 17 00:00:00 2001 From: Ivan Gualandri Date: Mon, 9 Feb 2015 15:23:57 +0100 Subject: [PATCH 2/9] * Add fb_button image * Add Facebook share link * Update version number --- images/fb_button.png | Bin 0 -> 1782 bytes manifest.json | 2 +- src/popup.html | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 images/fb_button.png diff --git a/images/fb_button.png b/images/fb_button.png new file mode 100644 index 0000000000000000000000000000000000000000..d32acc8514a0117cd28dd099cbef69479a9ced89 GIT binary patch literal 1782 zcmV9xHX(+j zF%=-_3ngtRDn+6SeJM0bkV30A2~yHV5g~jaG%2)cjZ~+`G1NR#BSRhpiVOv8YK-w? zZLht%ckeyZ5Bu-~yR9Nsl@RmgfA7qkxo7?}=iGDDhkx&o=YI16(YS{QD8)@21+7kN z@y`b09tfbgiDRJMA9E2Alv0SfiDRKH#(+|YF$jWjT?9i~KUO~~KxrGLG)h|xjdLTS zEeIF^1;$PA+{VvSIWvK%EHqMd9n5CbCKeR&rDu-CYsvydr`=JuHp}!59Mwp68B9P|e}< zJo25rJo?>tSoZC=GI|j&Gu{{jCPF+okRN^*bM9^W8C=n9I=beQKOo z%$}-E{9$E?ygQasTlIZjxhrdI|3DEtsy0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n#eP zqqUW~B&&@7jfl3SE;Aw~nY
Flattr this +
From 3e9bb8f74dcb8fdb117ef76f22305c088d5e8a14 Mon Sep 17 00:00:00 2001 From: Ivan Gualandri Date: Wed, 4 Mar 2015 22:58:47 +0100 Subject: [PATCH 3/9] Add Tweet button. --- images/twitter.png | Bin 0 -> 1370 bytes src/popup.html | 1 + 2 files changed, 1 insertion(+) create mode 100644 images/twitter.png diff --git a/images/twitter.png b/images/twitter.png new file mode 100644 index 0000000000000000000000000000000000000000..a23f48d390615ab2c5f775bd1fe1d3dd60b15a76 GIT binary patch literal 1370 zcmV-g1*Q6lP)AR4cIhAj1V_LqS7A~KctwC7#jR45o!=h&5scJ(LxbgQ?!t;5-|}$ zN`jDpnueMztkTVHk|u53?7Hjj%)WWAA5SOK)e3DXN$;hFpH}m;#0_s~fH08qkA_~QI-C5}oa+Mv1BPMTzI}USWTd~p-{F01Kye|zoPJ!+0*0m-zC<;T@6k*$S!bsK&|@vgW3kK zlLznIxicIN`~7|Z;5H$owYBx$y?d0>uCA_FEJg@PBoeKyt#fm8Q&UqXPo8XVZ}08x zO{dd*jP~{QwYRsQIB{ZXYHDn3Y;bUJadC0~{{0rDm%!!S#u)o%{&$d7c&#Q|6&U_a z{$c^Zp#a|zK>(8+@QH*F9#1JXO_LXZ+reN^)3kUzo=heQA*!k-5{bFFIk(&G^Z5n_ z2KMdScm4WxkH<4KG(;)Ac<~~}cyx5Mqod=(g$sN4?rm#p3j_jVV`CPoN;23d!{DC4 zfjgzFAcN!plK=qV=bsP8n%vYdjEc_Xa5-*5NHiLqpPyG0B^r$?iZU}ZlT0R?nwsMA zcs`#W9v;4W^(v**<#Oq|K07-rNm48p0|3J?78e&0LV_R=LjH0xn5Jpnd&dPmA#rGd zW+?{IVQ(X#q&wt%aq3xX=6M<$8?Rlvh7gKIqmm>|Pfw@Q=~yf#NfH3`_xHE7wD1+? z^LbGe4;?zx)6>Jds#q*qlWK?eRNu1(Wy-bU*k1lXTHa*Rb?AgI5Dtg$-@l(sCL@tZC=_zL-Q(lq3kwV9&!4|^=@LRH91c%TPCk72 z@bcx$y}iAi*yHg8gF#uA&z(D$OeRmAI<>mG+R@QLDedd)^Z9(;-Q72D-aK;T z2*$X%xtTF`=FAyg*DJUyP)hIKy&DJw_;pqB+EPZt_GM}eEq)UKBz_`|l-rw%15zT!52?KcPY&Q%;*LAxm zpU=P4W{j1~<%$f2Lc#7~jOB7UyQi|%EM5~ra=Ba(yxPyOaK4?07*qoM6N<$f)u!xi~s-t literal 0 HcmV?d00001 diff --git a/src/popup.html b/src/popup.html index afbcf3e..8dc0fba 100755 --- a/src/popup.html +++ b/src/popup.html @@ -70,6 +70,7 @@
Flattr this +
From d66d48c17a5ccd5e241c64e7fa7fe009fc4b6202 Mon Sep 17 00:00:00 2001 From: Ivan Gualandri Date: Wed, 4 Mar 2015 23:08:10 +0100 Subject: [PATCH 4/9] Add google plus share button --- images/gplus.png | Bin 0 -> 1186 bytes src/popup.html | 1 + 2 files changed, 1 insertion(+) create mode 100644 images/gplus.png diff --git a/images/gplus.png b/images/gplus.png new file mode 100644 index 0000000000000000000000000000000000000000..7a863a1816858aab3df9c5cbb3a299ec6bb1b3b2 GIT binary patch literal 1186 zcmV;T1YP@yP)P`@|DHRSVNz(ChU*Rj0Fg-K z@bEAk4qtXL$pl4F48srv0e}>mruX*t^78WdeEww@mP|;Jbi3U+jspM(0K(z$HFF36 zd_F&RHj$?vlMlCo>vqa@KhOBKIF2ta zF0QPsR99DrLLrtwqtTen=EU`9VVjKp^@wuq$EJce-vWTB-0ltO|4ds zj*eQb)MfW(7@$#S@F8My3*3p#Pw%kn@r8h{%7Zxn5)yEpI3Z4RVZSnt~y1W zwH6i@)M|BWYpY(bZ)$4tcs$W))L<}3B$Aq%8oS*N04*&o&CSjA_4RVOd~IzF0EUN$ z%gf6(o+=m942$R`+=s9yL7>I zyU%u)avkJ+-5)1EMj#OIdcFDi`OLJpw^ysxS}c~CnVGJxE{R0a(b3`a`2fJ}c5AiT ztgNi5sj2<_eUr)5*x1PGl3XrNOH13_+$0DBMbV0i3MPJ$K0fS=hlk;LlRt%iJMh`= z23POrj!ZFajP;Ni6j;|;i5w1lzW~7Da1<98Ycv{#LSeC3oK7bIl$Dj$*48>4j_vL3 z-Q8UP(ChUSMVU;d|H|O;6bc1F5L_--CX)#S0w#WuK0eQ=ELAAtm%foIcnJWW+?iv7 z1=e-OSZu%|Jv}`$GxO-^h?yD;hRMlE6h)aS^YO^q2%4r-Qc?gQCOeB#sU!%3APA*W z84JeI$AR6+sNd&bxfgW&jJ%SA-oyf{_bAu?tKW^qUduSBRI1t8S+Q8`^?IkLr~CT) zWHQ0`beSK0 zoby#5s*u~!=Q?aEv**9;B-AP7Q|Px# literal 0 HcmV?d00001 diff --git a/src/popup.html b/src/popup.html index 8dc0fba..654e0fb 100755 --- a/src/popup.html +++ b/src/popup.html @@ -71,6 +71,7 @@ Flattr this + From 28988903ecb547f74df08e7a3459f01e70c6baa8 Mon Sep 17 00:00:00 2001 From: Ivan Gualandri Date: Thu, 5 Mar 2015 09:25:27 +0100 Subject: [PATCH 5/9] And keypress listener on new parameter value container text field --- src/popup.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/popup.js b/src/popup.js index 9ac6b12..adfebcd 100755 --- a/src/popup.js +++ b/src/popup.js @@ -30,7 +30,8 @@ function click(e) { }); } else if(e.target.id=="social_button"){ console.log("Show social bar"); - document.getElementById("social_bar").style.display = 'block'; + var element = document.getElementById("social_bar") + element.style.display = "block"; } } @@ -52,6 +53,7 @@ function add_new_parameter(){ var div_element = document.createElement("div"); parameter_value_container.setAttribute("id", "new_parameter"); parameter_name_container.setAttribute("type", "text"); + parameter_value_container.addEventListener("keypress", input_keypress); parameter_name_container.onblur = function(){ if(this.value!=""){ var element = this.nextElementSibling; @@ -261,4 +263,4 @@ function create_csv(parameters_array){ csv_file += key + "," + "\"" + parameters_array[key]+ "\"\n"; } return csv_file; -} \ No newline at end of file +} From 341290e15be0ca4d9fb2afd0c2556fd279eeba36 Mon Sep 17 00:00:00 2001 From: Ivan Gualandri Date: Thu, 5 Mar 2015 15:34:53 +0100 Subject: [PATCH 6/9] Update copyright year. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8880c15..7ec556f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Install from [Google Chrome Web Store](https://chrome.google.com/webstore/detail License ================= -Copyright (C) 2014 Ivan Gualandri and Davide Fiorentino +Copyright (C) 2015 Ivan Gualandri and Davide Fiorentino This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by From 1191ed2542f29b9e02f1dca6e04ccb18e798aea2 Mon Sep 17 00:00:00 2001 From: Ivan Gualandri Date: Sun, 8 Mar 2015 00:44:07 +0100 Subject: [PATCH 7/9] Add onUpdate function --- src/background.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/background.js b/src/background.js index 331982b..afc6274 100755 --- a/src/background.js +++ b/src/background.js @@ -47,6 +47,10 @@ function onInstall(){ }); } +function onUpdate(){ + console.log("Extension Updated"); +} + chrome.runtime.onInstalled.addListener(function(details){ var current_version = getVersion(); var old_version = localStorage['version'] @@ -59,4 +63,4 @@ chrome.runtime.onInstalled.addListener(function(details){ } } console.log("Reason: " + details.reason); -}); \ No newline at end of file +}); From d5639f9538ec2bcd5da1e0452a03654656327828 Mon Sep 17 00:00:00 2001 From: Ivan Gualandri Date: Sun, 8 Mar 2015 00:52:13 +0100 Subject: [PATCH 8/9] Add post_update file. After an update, the post_update page will be open. --- src/background.js | 5 +++++ src/post_update.html | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 src/post_update.html diff --git a/src/background.js b/src/background.js index afc6274..f01f425 100755 --- a/src/background.js +++ b/src/background.js @@ -49,6 +49,8 @@ function onInstall(){ function onUpdate(){ console.log("Extension Updated"); + chrome.tabs.create({'url': chrome.extension.getURL('src/post_update.html')}, function(tab){ + }); } chrome.runtime.onInstalled.addListener(function(details){ @@ -60,6 +62,9 @@ chrome.runtime.onInstalled.addListener(function(details){ console.log("OnInstall Call"); localStorage['version'] = current_version; onInstall(); + } else { + localStorage['version'] = current_version; + onUpdate(); } } console.log("Reason: " + details.reason); diff --git a/src/post_update.html b/src/post_update.html new file mode 100644 index 0000000..0a73c7a --- /dev/null +++ b/src/post_update.html @@ -0,0 +1,32 @@ + + + Parameter Editor + + + + +

Parameters Editor has been updated.

+

Scope

+ The scope of this extension is to show parameters used to get to the page you're showing, and let you update (if needed) values for those parameter. +

Instructions

+

+ Just click on EDIT icon you see in the address bar, click and you'll see all parameters used to get to that page.
+ You can edit values for those parameters simply typing new value in the text box at the right of parameter key, or if you want you can add new parameters by clicking Add new.

+ + When you've finished editing parameters, just click on Update Parameters and you'll get to another page with updated parameters.
+
+ + If you want to export the parameters list as CSV file just press the Export button +

+ Starting from version 1.1 you can also import parameters list from comma sperated a CSV file. + Starting from version 1.0 you can also export parameters list as CSV file. +

Source code

+ This extension is Open Source, released under GPLv3. You can download sources from GitHub + + + From c8f61172dda8f8e1ebd269c8a9cc34a232c546e1 Mon Sep 17 00:00:00 2001 From: Ivan Gualandri Date: Tue, 10 Mar 2015 10:25:08 +0100 Subject: [PATCH 9/9] Update post_update file. --- src/post_update.html | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/post_update.html b/src/post_update.html index 0a73c7a..bdb1f31 100644 --- a/src/post_update.html +++ b/src/post_update.html @@ -9,24 +9,24 @@ - -

Parameters Editor has been updated.

-

Scope

- The scope of this extension is to show parameters used to get to the page you're showing, and let you update (if needed) values for those parameter. -

Instructions

-

- Just click on EDIT icon you see in the address bar, click and you'll see all parameters used to get to that page.
- You can edit values for those parameters simply typing new value in the text box at the right of parameter key, or if you want you can add new parameters by clicking Add new.

- - When you've finished editing parameters, just click on Update Parameters and you'll get to another page with updated parameters.
-
- - If you want to export the parameters list as CSV file just press the Export button -

- Starting from version 1.1 you can also import parameters list from comma sperated a CSV file. - Starting from version 1.0 you can also export parameters list as CSV file. -

Source code

- This extension is Open Source, released under GPLv3. You can download sources from GitHub +
+

Parameters Editor has been updated.

+

Changelog

+ New in version 1.2 +
    +
  • Add share buttons (now you can share this extension with your friends)
  • +
  • Fix bug #32 - Enter doesn't work when a new parameter is added.
  • +
  • When the extension will be updated a changelog screen (this) appear
  • +
+

Source code

+ This extension is Open Source, released under GPLv3. You can download sources from GitHub +
+
Flattr this + + + +