From e395ac49e835ed9b905c3a657fcab47516a36f5e Mon Sep 17 00:00:00 2001 From: alopexc0de Date: Mon, 18 Aug 2014 20:50:30 -0400 Subject: [PATCH] Chrome extension for lob.li. Untested with the API --- lob.li crx/LICENSE.txt | 10 ++++ lob.li crx/background.html | 11 +++++ lob.li crx/icons/lobli-128.png | Bin 0 -> 4816 bytes lob.li crx/icons/lobli-16.png | Bin 0 -> 476 bytes lob.li crx/icons/lobli-19.png | Bin 0 -> 619 bytes lob.li crx/icons/lobli-32.png | Bin 0 -> 1005 bytes lob.li crx/icons/lobli-48.png | Bin 0 -> 1727 bytes lob.li crx/js/background.js | 82 +++++++++++++++++++++++++++++++++ lob.li crx/js/contextmenu.js | 15 ++++++ lob.li crx/manifest.json | 41 +++++++++++++++++ 10 files changed, 159 insertions(+) create mode 100644 lob.li crx/LICENSE.txt create mode 100644 lob.li crx/background.html create mode 100644 lob.li crx/icons/lobli-128.png create mode 100644 lob.li crx/icons/lobli-16.png create mode 100644 lob.li crx/icons/lobli-19.png create mode 100644 lob.li crx/icons/lobli-32.png create mode 100644 lob.li crx/icons/lobli-48.png create mode 100644 lob.li crx/js/background.js create mode 100644 lob.li crx/js/contextmenu.js create mode 100644 lob.li crx/manifest.json diff --git a/lob.li crx/LICENSE.txt b/lob.li crx/LICENSE.txt new file mode 100644 index 0000000..dbda4ad --- /dev/null +++ b/lob.li crx/LICENSE.txt @@ -0,0 +1,10 @@ +lobli Copyright (c) David Todd (c0de) +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + * Neither the name of David Todd (c0de) nor the names of his contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/lob.li crx/background.html b/lob.li crx/background.html new file mode 100644 index 0000000..6e6c8ff --- /dev/null +++ b/lob.li crx/background.html @@ -0,0 +1,11 @@ + + + + lobli background + + + + + + + diff --git a/lob.li crx/icons/lobli-128.png b/lob.li crx/icons/lobli-128.png new file mode 100644 index 0000000000000000000000000000000000000000..6c25240c01e6cbf0a946d7f72e8da33ce2ff7e32 GIT binary patch literal 4816 zcmZu#XHXMdvrdDA(0i9&l#UdU5|rMg7}`rOf&vN}1VShYN)tpnC?!ZIbWuX2ML<9) zqS8@_(u-6PLXnU6-aGfty>n*I?z3}d&g{<4p66_$)eR#?I3FAU05F;u>)V`b?7sq| zJ>R=^JO<7c#P^!TH2|RT8U2X|%{iv^G&9l%oc+6s+AA{7J#<0Fjwk?tp8a0|0$$|v zoI9bxCKd+JSr`kqAow^|Zx;YyvoO)Wh76njRe;HKw$18|Zaqp1zDmbzU}Y{|zZqO` zBY_Q>Dh!cqi;IV)(WOWyr`#7^p?Hz4gXqj|!Gxvh;{eLiqROJ(a8VYhWWset+H{w( z)gE!lC+=1vFEvfS|HQ*KTf$aoELtH^>i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yVax+}+XAY`tomT`5n zZuoHbRRn6-LybSp3l|z*W*FDg|5>7s9pQfs#7jAtM%D^>UB-VVf~v7@ z;B`d|u<4#j1##b6J*&uRrdoZ=cd$(@uMudeY7iAsa9)_EkbsVX%4J7V6bj1 z57I8mqEuC!NjR`ia>nu?O6jZ~b6Aj{L+;L%!2U3f`w0pYBm5<9(<_Lr%xb5ZO}~s0 zq1tUai{zo6Le}>SAj~eWsRIvwhN{(z+zjxzbmG$0w-qE;#BB`r$IbyiEpD#z`+l@6@ePak*_C$T8BXFzsrB+EKt^20 zT|C4}srAJedJpq!o=X2iLSm~B1*4*&k~NU_woKPc(ihr!+l z%^~)t@)BPf@RG%7%U|f}7*00;1H8wZiGXCa@UGS*n{cT46t*1K;~?gGS>p6 zvM=Z7r^;ybs}<9kjJTAIF1_a+$cPIWvA=KYpRVAsh$k7b+-PuB#7(^F;@*t%YuvzR zT*OAV3mdqH6F6IHUD)KHTc+b(Oz-@4Yz^xeVg=tztqYSjcHH)%jF_9W&VK-$7iTKc Sxh;AC0000JTM?kPusAjwJFtl^Fjrmv9S&8Cxoe~3}Jd2*23!S zYn!|OutqBj*wd!W3TD;|%XotAWw6Za^}+&tIiz&6)ov<+$BLmHDg0h+!}mgh`ffOF@_?mDwaY@b7lV${sOBt!-AX}(aHb-002ovPDHLk FV1g>K1yBG0 literal 0 HcmV?d00001 diff --git a/lob.li crx/icons/lobli-32.png b/lob.li crx/icons/lobli-32.png new file mode 100644 index 0000000000000000000000000000000000000000..bc1b425ee02aabb89515f2b0821a84e32e4675cf GIT binary patch literal 1005 zcmVm6kTB5Yp<8 zlu)An5JV6O{8OZeD9Zj&f{36C-XJttr6h`U5m|Xj1a;@##4JI@z^&G06P?@XkN3Rv zI^J#1Z%(4;ujhS#=XuWee9!fP|9DBNpsONgrN66z(LfK-E@s`g8o;x_e4rkf8E5|h zZU?G>F5n1o6!=oiTKj^|1fY1>Ro4J3ff2w?pb7UQlF$F%N4_q=Jq^qOT7WmitSK`9 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h(M_eb)s{nTI&S+sgZ0xo7F43GTw^d2; zklL!Tl;ymPrmSe5n<4xPObyHLFkuCOU~dxY^z;Q%xta#LyULExh@$=?sm>p-t~ z1jrTDjiF<}7`eE2E=N=m)q3M?mU-v;cT_xh=OzQwjp0kp^$E*L6cI4Usj<$OxaHot zAqKL20uLB~A3QiE=nP;6a6nYI*j!JuNGuEh4@~gR^);&;1C{_+0PlL|MiDU4!H)+H zY;!h~(o#q!3%zr%7%!9nW~K%5l2nX@0Z>K2Ccj~%7DmFpYA;#=Eb`8c0FaWBj8m;y zud8=%A_2oOo`AKUk;acMHF{-NOWCM3a(4_tL!**_eBEpF1A)cBwZIvRkJZ3hQLSlZ z&wiE=?luyu0N4!77u5>$_hrB>roeHcnh0ISdgqn{cbY|JW1PM{n+Qw*dH`K5tCa#J z1oZkDJ1=?w{eWTSf@gt$QWh4~t+ropU^zjbp$?cNs=u^E8fVfU$T4k?CgA%&C1`LQ zN+Z37o4Je4D!oj*IcX$7rLkd)P&7wJGl_{o(YT!jt-4MFL(F8<3@SJ6(glTU* zup*r&_0FYwVA%xqeT;J*%LM0IObuyk#sSmJGFcX|Gez}>cD0zA0rUXym}x271X~4s zM$m1kC1~>b7AVTpW#}G)wo-2cR&TC1OH@xs(&RfY?FH88NzjlOMbJfw8<713CGio0 z=0~c{nq>laH(~n%18fch{yp%8sBUgr2}F7qZBk+s*u~~P)8^IYCQ17=+FvmcDVK`b zvmL-%f", + "tabs", + "clipboardWrite", + "contextMenus", + "notifications" + ], + "icons": { + "16": "icons/lobli-16.png", + "32": "icons/lobli-32.png", + "48": "icons/lobli-48.png", + "128": "icons/lobli-128.png" + }, + "web_accessible_resources": [ + "icons/lobli-16.png", + "icons/lobli-19.png", + "icons/lobli-32.png", + "icons/lobli-48.png", + "icons/lobli-128.png" + ], + "commands": { + "shortenTab": { + "suggested_key": { "default": "Alt+L" }, + "description": "Shortens Current Tab" + } + } +}