Compare commits

..

23 Commits
0.3.3 ... 0.6.1

Author SHA1 Message Date
Deployment Bot (from Travis CI)
aa020d719e Deploy abhijithvijayan/kutt-extension to github.com/abhijithvijayan/kutt-extension.git:extension 2019-01-16 06:19:49 +00:00
Deployment Bot (from Travis CI)
92fd233d5e Deploy abhijithvijayan/kutt-extension to github.com/abhijithvijayan/kutt-extension.git:extension 2019-01-14 12:57:40 +00:00
Deployment Bot (from Travis CI)
7ce41b6573 Deploy abhijithvijayan/kutt-extension to github.com/abhijithvijayan/kutt-extension.git:extension 2019-01-14 05:30:07 +00:00
Deployment Bot (from Travis CI)
a3cb654e4e Deploy abhijithvijayan/kutt-extension to github.com/abhijithvijayan/kutt-extension.git:extension 2019-01-14 05:20:51 +00:00
Deployment Bot (from Travis CI)
764eea8f7f Deploy abhijithvijayan/kutt-extension to github.com/abhijithvijayan/kutt-extension.git:extension 2019-01-13 15:41:27 +00:00
Deployment Bot (from Travis CI)
bd37e2465f Deploy abhijithvijayan/kutt-extension to github.com/abhijithvijayan/kutt-extension.git:extension 2019-01-13 15:39:25 +00:00
Deployment Bot (from Travis CI)
7a386d4143 Deploy abhijithvijayan/kutt-extension to github.com/abhijithvijayan/kutt-extension.git:extension 2019-01-13 14:26:34 +00:00
Deployment Bot (from Travis CI)
bd85803f41 Deploy abhijithvijayan/kutt-extension to github.com/abhijithvijayan/kutt-extension.git:extension 2019-01-13 10:46:39 +00:00
Deployment Bot (from Travis CI)
61ff44e3f9 Deploy abhijithvijayan/kutt-extension to github.com/abhijithvijayan/kutt-extension.git:extension 2019-01-13 10:36:39 +00:00
Deployment Bot (from Travis CI)
e70f84fe87 Deploy abhijithvijayan/kutt-extension to github.com/abhijithvijayan/kutt-extension.git:extension 2019-01-13 10:19:26 +00:00
Deployment Bot (from Travis CI)
cbd288ec0b Deploy abhijithvijayan/kuttUrl-browser-extension to github.com/abhijithvijayan/kuttUrl-browser-extension.git:extension 2019-01-11 15:16:00 +00:00
Deployment Bot (from Travis CI)
f1d7aa9d75 Deploy abhijithvijayan/kuttUrl-browser-extension to github.com/abhijithvijayan/kuttUrl-browser-extension.git:extension 2019-01-11 12:36:22 +00:00
Deployment Bot (from Travis CI)
4150c30661 Deploy abhijithvijayan/kuttUrl-browser-extension to github.com/abhijithvijayan/kuttUrl-browser-extension.git:extension 2019-01-11 12:22:16 +00:00
Deployment Bot (from Travis CI)
fed18005d0 Deploy abhijithvijayan/kuttUrl-browser-extension to github.com/abhijithvijayan/kuttUrl-browser-extension.git:extension 2019-01-11 12:14:06 +00:00
Deployment Bot (from Travis CI)
31f49b6a8a Deploy abhijithvijayan/kuttUrl-browser-extension to github.com/abhijithvijayan/kuttUrl-browser-extension.git:extension 2019-01-11 11:50:06 +00:00
Deployment Bot (from Travis CI)
f4230bc8e4 Deploy abhijithvijayan/kuttUrl-browser-extension to github.com/abhijithvijayan/kuttUrl-browser-extension.git:extension 2019-01-11 10:30:15 +00:00
Deployment Bot (from Travis CI)
6e9f74fcf1 Deploy abhijithvijayan/kuttUrl-browser-extension to github.com/abhijithvijayan/kuttUrl-browser-extension.git:extension 2019-01-11 07:53:25 +00:00
Deployment Bot (from Travis CI)
e6a3743696 Deploy abhijithvijayan/kuttUrl-browser-extension to github.com/abhijithvijayan/kuttUrl-browser-extension.git:extension 2019-01-11 04:55:19 +00:00
Deployment Bot (from Travis CI)
be7b2ffdd7 Deploy abhijithvijayan/kuttUrl-browser-extension to github.com/abhijithvijayan/kuttUrl-browser-extension.git:extension 2019-01-10 06:22:46 +00:00
Deployment Bot (from Travis CI)
d65aac1efd Deploy abhijithvijayan/kuttUrl-browser-extension to github.com/abhijithvijayan/kuttUrl-browser-extension.git:extension 2019-01-10 05:53:42 +00:00
Deployment Bot (from Travis CI)
18694b4e36 Deploy abhijithvijayan/kuttUrl-browser-extension to github.com/abhijithvijayan/kuttUrl-browser-extension.git:extension 2019-01-09 15:19:40 +00:00
Deployment Bot (from Travis CI)
02f85a848c Deploy abhijithvijayan/kuttUrl-browser-extension to github.com/abhijithvijayan/kuttUrl-browser-extension.git:extension 2019-01-09 15:03:36 +00:00
Deployment Bot (from Travis CI)
eba1f44912 Deploy abhijithvijayan/kuttUrl-Chrome-extension to github.com/abhijithvijayan/kuttUrl-Chrome-extension.git:extension 2019-01-08 20:04:31 +00:00
69 changed files with 190 additions and 37 deletions

View File

@@ -1 +0,0 @@
<svg aria-hidden="true" data-prefix="fas" data-icon="chart-line" class="svg-inline--fa fa-chart-line fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"></path></svg>

Before

Width:  |  Height:  |  Size: 688 B

View File

@@ -1 +0,0 @@
<svg aria-hidden="true" data-prefix="far" data-icon="copy" class="svg-inline--fa fa-copy fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"></path></svg>

Before

Width:  |  Height:  |  Size: 718 B

View File

@@ -1,2 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M896 128q209 0 385.5 103t279.5 279.5 103 385.5q0 251-146.5 451.5t-378.5 277.5q-27 5-40-7t-13-30q0-3 .5-76.5t.5-134.5q0-97-52-142 57-6 102.5-18t94-39 81-66.5 53-105 20.5-150.5q0-119-79-206 37-91-8-204-28-9-81 11t-92 44l-38 24q-93-26-192-26t-192 26q-16-11-42.5-27t-83.5-38.5-85-13.5q-45 113-8 204-79 87-79 206 0 85 20.5 150t52.5 105 80.5 67 94 39 102.5 18q-39 36-49 103-21 10-45 15t-57 5-65.5-21.5-55.5-62.5q-19-32-48.5-52t-49.5-24l-20-3q-21 0-29 4.5t-5 11.5 9 14 13 12l7 5q22 10 43.5 38t31.5 51l10 23q13 38 44 61.5t67 30 69.5 7 55.5-3.5l23-4q0 38 .5 88.5t.5 54.5q0 18-13 30t-40 7q-232-77-378.5-277.5t-146.5-451.5q0-209 103-385.5t279.5-279.5 385.5-103zm-477 1103q3-7-7-12-10-3-13 2-3 7 7 12 9 6 13-2zm31 34q7-5-2-16-10-9-16-3-7 5 2 16 10 10 16 3zm30 45q9-7 0-19-8-13-17-6-9 5 0 18t17 7zm42 42q8-8-4-19-12-12-20-3-9 8 4 19 12 12 20 3zm57 25q3-11-13-16-15-4-19 7t13 15q15 6 19-6zm63 5q0-13-17-11-16 0-16 11 0 13 17 11 16 0 16-11zm58-10q-2-11-18-9-16 3-14 15t18 8 14-14z"/></svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -1 +0,0 @@
<svg aria-hidden="true" data-prefix="fas" data-icon="qrcode" class="svg-inline--fa fa-qrcode fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"></path></svg>

Before

Width:  |  Height:  |  Size: 433 B

View File

@@ -1 +0,0 @@
<svg aria-hidden="true" data-prefix="fas" data-icon="cog" class="svg-inline--fa fa-cog fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"></path></svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

BIN
chrome.zip Normal file

Binary file not shown.

1
chrome/assets/chart.svg Normal file
View File

@@ -0,0 +1 @@
<svg aria-hidden="true" data-prefix="fas" data-icon="chart-line" class="svg-inline--fa fa-chart-line fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#888" d="M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"></path></svg>

After

Width:  |  Height:  |  Size: 680 B

1
chrome/assets/copy.svg Normal file
View File

@@ -0,0 +1 @@
<svg aria-hidden="true" data-prefix="far" data-icon="copy" class="svg-inline--fa fa-copy fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="#888" d="M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"></path></svg>

After

Width:  |  Height:  |  Size: 710 B

View File

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

Before

Width:  |  Height:  |  Size: 984 B

After

Width:  |  Height:  |  Size: 984 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

2
chrome/assets/github.svg Normal file
View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="#444" d="M896 128q209 0 385.5 103t279.5 279.5 103 385.5q0 251-146.5 451.5t-378.5 277.5q-27 5-40-7t-13-30q0-3 .5-76.5t.5-134.5q0-97-52-142 57-6 102.5-18t94-39 81-66.5 53-105 20.5-150.5q0-119-79-206 37-91-8-204-28-9-81 11t-92 44l-38 24q-93-26-192-26t-192 26q-16-11-42.5-27t-83.5-38.5-85-13.5q-45 113-8 204-79 87-79 206 0 85 20.5 150t52.5 105 80.5 67 94 39 102.5 18q-39 36-49 103-21 10-45 15t-57 5-65.5-21.5-55.5-62.5q-19-32-48.5-52t-49.5-24l-20-3q-21 0-29 4.5t-5 11.5 9 14 13 12l7 5q22 10 43.5 38t31.5 51l10 23q13 38 44 61.5t67 30 69.5 7 55.5-3.5l23-4q0 38 .5 88.5t.5 54.5q0 18-13 30t-40 7q-232-77-378.5-277.5t-146.5-451.5q0-209 103-385.5t279.5-279.5 385.5-103zm-477 1103q3-7-7-12-10-3-13 2-3 7 7 12 9 6 13-2zm31 34q7-5-2-16-10-9-16-3-7 5 2 16 10 10 16 3zm30 45q9-7 0-19-8-13-17-6-9 5 0 18t17 7zm42 42q8-8-4-19-12-12-20-3-9 8 4 19 12 12 20 3zm57 25q3-11-13-16-15-4-19 7t13 15q15 6 19-6zm63 5q0-13-17-11-16 0-16 11 0 13 17 11 16 0 16-11zm58-10q-2-11-18-9-16 3-14 15t18 8 14-14z"/></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

1
chrome/assets/qrcode.svg Normal file
View File

@@ -0,0 +1 @@
<svg aria-hidden="true" data-prefix="fas" data-icon="qrcode" class="svg-inline--fa fa-qrcode fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="#888" d="M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"></path></svg>

After

Width:  |  Height:  |  Size: 425 B

View File

@@ -0,0 +1 @@
<svg aria-hidden="true" data-prefix="fas" data-icon="cog" class="svg-inline--fa fa-cog fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#444" d="M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"></path></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

1
chrome/css/options.css Normal file

File diff suppressed because one or more lines are too long

1
chrome/css/popup.css Normal file
View File

@@ -0,0 +1 @@
@import url(https://fonts.googleapis.com/css?family=Nunito:400,600);*,:after,:before{box-sizing:border-box}:focus{outline:0}ol,ul{list-style-type:none}*{margin:0;padding:0;border:0;outline:0}body{overflow-x:hidden}a:link{text-decoration:none}.d-none{display:none!important}.v-none{visibility:hidden!important}.text-center{text-align:center}.mt-3{margin-top:3em}.selectDisable{-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}body{font-family:Nunito,sans-serif;color:#111}#home{min-width:340px}#home .container{padding:10px}#home .container .navbar .navbar__main{margin:0;padding-left:0}#home .container .navbar .navbar__main li{display:inline-block;justify-content:center;align-items:center}#home .container .navbar .navbar__main .logo__content--holder .main__logo{width:22px;height:22px}#home .container .navbar .navbar__main .options__content-holder{float:right;padding:0 10px}#home .container .navbar .navbar__main .options__content-holder .settings__logo{width:16px;height:16px}#home .container .content__holder .url__content--holder{display:flex;align-items:center;justify-content:center;margin:1.5em 0}#home .container .content__holder .url__content--holder #url__content-inner{margin:0;font-size:20px;color:#333;font-weight:600}#home .container .content__holder .buttons__content--holder{display:flex;align-items:center;padding:0;margin:0 0 0 16px}#home .container .content__holder .buttons__content--holder .copy__content--holder,#home .container .content__holder .buttons__content--holder .qrbtn__content--holder{cursor:pointer;display:flex;align-items:center;justify-content:center;width:28px;height:28px;margin:0 6px;border-radius:100%;box-shadow:0 2px 4px hsla(0,0%,39.2%,.1);background-color:#dedede}#home .container .content__holder .buttons__content--holder .copy__content--holder #button__copy,#home .container .content__holder .buttons__content--holder .copy__content--holder #button__qrcode,#home .container .content__holder .buttons__content--holder .qrbtn__content--holder #button__copy,#home .container .content__holder .buttons__content--holder .qrbtn__content--holder #button__qrcode{width:13px;height:13px}#home .container .content__holder .copy__alert{margin:8px 0 1px}

8
chrome/js/background.js Normal file

File diff suppressed because one or more lines are too long

1
chrome/js/options.js Normal file

File diff suppressed because one or more lines are too long

1
chrome/js/popup.js Normal file

File diff suppressed because one or more lines are too long

46
chrome/manifest.json Normal file
View File

@@ -0,0 +1,46 @@
{
"manifest_version": 2,
"name": "Kutt",
"version": "0.6.1",
"description": "URL Shortener",
"icons": {
"16": "assets/favicon-16.png",
"32": "assets/favicon-32.png",
"48": "assets/favicon-48.png",
"128": "assets/favicon-128.png"
},
"browser_action": {
"default_popup": "popup.html",
"default_icon": {
"16": "assets/favicon-16.png",
"32": "assets/favicon-32.png",
"48": "assets/favicon-48.png",
"128": "assets/favicon-128.png"
},
"default_title": "Kutt",
"chrome_style": false
},
"author": "abhijithvijayan",
"background": {
"persistent": false,
"scripts": [
"js/background.js"
]
},
"homepage_url": "https://github.com/abhijithvijayan/kutt-extension",
"minimum_chrome_version": "55.0.2883",
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
"options_page": "options.html",
"options_ui": {
"page": "options.html",
"chrome_style": false,
"open_in_tab": true
},
"permissions": [
"tabs",
"storage",
"clipboardRead",
"https://kutt.it/*/*"
],
"short_name": "Kutt"
}

1
chrome/options.html Normal file
View File

@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Options: Kutt</title><link rel="stylesheet" href="css/options.css"></head><body><section id="options"><div class="container options__content--holder"><div class="head__content--holder text-center"><img class="head__content--logo" src="assets/logo.png"> <a class="head__content--title" href="https://kutt.it" target="_blank" rel="noopener">Kutt.it</a></div><div class="form__content--holder"><form class="form__content"><label class="api__key--label">API Key: <a class="api__label--Qmark" target="_blank" rel="noopener" href="https://kutt.it/login">? <span class="api__label--tooltiptext text-center">Generate from Kutt.it (Settings Page)</span></a></label> <input class="api__key--holder" id="api__key--value" type="password" spellcheck="false"><br><label class="password--label">Set Password <span class="password__label--optional">(Optional): <span class="password__label--tooltiptext text-center">Set Password for the Shortened URLs.<br>(20 Char. Max)</span></span></label> <input class="password--holder" id="password--value" type="password" maxlength="20"><div class="password__check--holder"><input type="checkbox" id="password__view--checkbox"> <span class="password__view--title">Show Password</span></div><br><button class="button__submit" id="button__submit" type="button">Save</button> <label class="saved__alert v-none">Saved!!</label></form></div><div class="footer__text--holder text-center">Made with ❤️ on <a class="github__repo--link" href="https://github.com/abhijithvijayan/kutt-extension" target="_blank" rel="noopener">GitHub</a></div></div></section><script src="js/options.js"></script></body></html>

1
chrome/popup.html Normal file
View File

@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Kutt</title><link rel="stylesheet" href="css/popup.css"></head><body><section id="home"><div class="container"><nav class="navbar"><ul class="navbar__main"><li class="logo__content--holder"><img class="main__logo selectDisable" src="assets/logo.png"></li><li class="options__content-holder" id="options__content-holder" title="Options"><a href="options.html" target="_blank" rel="noopener"><img class="settings__logo selectDisable" src="assets/settings.svg"></a></li></ul></nav><div class="content__holder"><div class="url__content--holder text-center"><h4 id="url__content-inner">Shortening...</h4><ul class="buttons__content--holder d-none"><li class="copy__content--holder" id="button__copy--holder" title="Copy"><img id="button__copy" class="selectDisable" src="assets/copy.svg" alt="copy"></li><li class="qrbtn__content--holder" id="button__qrcode--holder" title="QR code"><img id="button__qrcode" class="selectDisable" src="assets/qrcode.svg" alt="QR Code"></li></ul></div><p class="copy__alert text-center d-none">Copied!!!</p><div class="qrcode__content--holder text-center d-none"><img id="qr_code" src="#" alt="QRCode"></div></div></div></section><script src="js/popup.js"></script></body></html>

View File

@@ -1 +0,0 @@
@import url(https://fonts.googleapis.com/css?family=Montserrat:400,600);*,:after,:before{box-sizing:border-box}:focus{outline:0}ol,ul{list-style-type:none}*{margin:0;padding:0;border:0;outline:0}body{overflow-x:hidden}a:link{text-decoration:none}.d-none{display:none!important}.v-none{visibility:hidden!important}.text-center{text-align:center}.mt-3{margin-top:3em}body{font-family:Montserrat,sans-serif;color:#111;background-color:#f3f3f3}#options{display:flex;justify-content:center;height:100vh}#options .options__content--holder{padding-top:4.8em}#options .options__content--holder .head__content--holder .head__content--logo{width:80px;height:80px}#options .options__content--holder .head__content--holder .head__content--title{margin:.2em 0 0;font-size:40px}#options .options__content--holder .form__content--holder{margin-top:3em}#options .options__content--holder .form__content--holder .form__content{padding:0 100px 100px;width:600px}#options .options__content--holder .form__content--holder .form__content .api__key--label,#options .options__content--holder .form__content--holder .form__content .password--label{font-size:16px;display:block;margin-bottom:.8em}#options .options__content--holder .form__content--holder .form__content .password--label{margin-top:.2em}#options .options__content--holder .form__content--holder .form__content .password--label .password__label--optional{position:relative;display:inline-block;border-bottom:1px dotted #000}#options .options__content--holder .form__content--holder .form__content .password--label .password__label--optional:hover .password__label--tooltiptext{visibility:visible;opacity:1}#options .options__content--holder .form__content--holder .form__content .password--label .password__label--optional .password__label--tooltiptext{visibility:hidden;font-size:13px;width:180px;line-height:1.3;letter-spacing:1px;background-color:#555;color:#fff;padding:5px 0;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;margin-left:-90px;opacity:0;transition:opacity .3s}#options .options__content--holder .form__content--holder .form__content .password--label .password__label--optional .password__label--tooltiptext:after{content:"";position:absolute;top:100%;left:50%;margin-left:-5px;border:5px solid transparent;border-top-color:#555}#options .options__content--holder .form__content--holder .form__content .api__key--holder,#options .options__content--holder .form__content--holder .form__content .password--holder{font-family:Montserrat,sans-serif;width:100%;border-radius:100px;background-color:#fff;border:none;margin-bottom:1em}#options .options__content--holder .form__content--holder .form__content .api__key--holder{padding:12px 25px;font-size:16px}#options .options__content--holder .form__content--holder .form__content .password--holder{font-size:20px;padding:8px 25px}#options .options__content--holder .form__content--holder .form__content .password__check--holder{display:flex}#options .options__content--holder .form__content--holder .form__content .password__check--holder #password__view--checkbox{margin-right:.5em;cursor:pointer}#options .options__content--holder .form__content--holder .form__content .saved__alert{margin-top:2em;padding-left:.5em}#options .options__content--holder .form__content--holder .form__content .button__submit{font-family:Montserrat,sans-serif;font-size:18px;display:block;color:#fff;width:100%;background-color:#4d5be7;border:none;border-radius:100px;padding:12px;margin:1em 0}#options .options__content--holder .form__content--holder .form__content .button__submit:hover{cursor:pointer;background-color:#4d5bfa}#options .options__content--holder .footer__text--holder{font-size:14px;letter-spacing:1px}#options .options__content--holder .footer__text--holder .github__repo--link{border-bottom:1px dotted #000;text-decoration:none}

View File

@@ -1 +0,0 @@
@import url(https://fonts.googleapis.com/css?family=Montserrat:400,600);*,:after,:before{box-sizing:border-box}:focus{outline:0}ol,ul{list-style-type:none}*{margin:0;padding:0;border:0;outline:0}body{overflow-x:hidden}a:link{text-decoration:none}.d-none{display:none!important}.v-none{visibility:hidden!important}.text-center{text-align:center}.mt-3{margin-top:3em}body{font-family:Montserrat,sans-serif;color:#111}#home{min-width:210px}#home .container{padding:10px}#home .container .navbar .navbar__main{margin:0;padding-left:0}#home .container .navbar .navbar__main li{display:inline-block;justify-content:center;align-items:center}#home .container .navbar .navbar__main .logo__content--holder .main__logo{width:23px;height:23px}#home .container .navbar .navbar__main .options__content-holder{float:right;padding:0 10px}#home .container .navbar .navbar__main .options__content-holder .settings__logo{width:17px;height:17px}#home .container .navbar .navbar__main .github__content-holder{float:right}#home .container .navbar .navbar__main .github__content-holder .github__logo{width:17px;height:17px}#home .container .content__holder .url__content--holder{margin:1.5em 0}#home .container .content__holder .url__content--holder #url__content-inner{margin:0;font-size:18px;font-weight:600}#home .container .content__holder .buttons__content--holder{display:flex;justify-content:space-evenly;padding-left:0;margin:1em 0}#home .container .content__holder .buttons__content--holder .copy__content--holder,#home .container .content__holder .buttons__content--holder .details__content--holder,#home .container .content__holder .buttons__content--holder .qrbtn__content--holder{display:inline;cursor:pointer}#home .container .content__holder .buttons__content--holder .copy__content--holder #button__copy,#home .container .content__holder .buttons__content--holder .copy__content--holder #button__details,#home .container .content__holder .buttons__content--holder .copy__content--holder #button__qrcode,#home .container .content__holder .buttons__content--holder .details__content--holder #button__copy,#home .container .content__holder .buttons__content--holder .details__content--holder #button__details,#home .container .content__holder .buttons__content--holder .details__content--holder #button__qrcode,#home .container .content__holder .buttons__content--holder .qrbtn__content--holder #button__copy,#home .container .content__holder .buttons__content--holder .qrbtn__content--holder #button__details,#home .container .content__holder .buttons__content--holder .qrbtn__content--holder #button__qrcode{width:22px;height:22px}#home .container .content__holder .copy__alert{margin:1em 0}#home .container .content__holder .qrcode__content--holder #qr_code{padding-top:.3em}

BIN
firefox.zip Normal file

Binary file not shown.

1
firefox/assets/chart.svg Normal file
View File

@@ -0,0 +1 @@
<svg aria-hidden="true" data-prefix="fas" data-icon="chart-line" class="svg-inline--fa fa-chart-line fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#888" d="M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"></path></svg>

After

Width:  |  Height:  |  Size: 680 B

1
firefox/assets/copy.svg Normal file
View File

@@ -0,0 +1 @@
<svg aria-hidden="true" data-prefix="far" data-icon="copy" class="svg-inline--fa fa-copy fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="#888" d="M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"></path></svg>

After

Width:  |  Height:  |  Size: 710 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 984 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="#444" d="M896 128q209 0 385.5 103t279.5 279.5 103 385.5q0 251-146.5 451.5t-378.5 277.5q-27 5-40-7t-13-30q0-3 .5-76.5t.5-134.5q0-97-52-142 57-6 102.5-18t94-39 81-66.5 53-105 20.5-150.5q0-119-79-206 37-91-8-204-28-9-81 11t-92 44l-38 24q-93-26-192-26t-192 26q-16-11-42.5-27t-83.5-38.5-85-13.5q-45 113-8 204-79 87-79 206 0 85 20.5 150t52.5 105 80.5 67 94 39 102.5 18q-39 36-49 103-21 10-45 15t-57 5-65.5-21.5-55.5-62.5q-19-32-48.5-52t-49.5-24l-20-3q-21 0-29 4.5t-5 11.5 9 14 13 12l7 5q22 10 43.5 38t31.5 51l10 23q13 38 44 61.5t67 30 69.5 7 55.5-3.5l23-4q0 38 .5 88.5t.5 54.5q0 18-13 30t-40 7q-232-77-378.5-277.5t-146.5-451.5q0-209 103-385.5t279.5-279.5 385.5-103zm-477 1103q3-7-7-12-10-3-13 2-3 7 7 12 9 6 13-2zm31 34q7-5-2-16-10-9-16-3-7 5 2 16 10 10 16 3zm30 45q9-7 0-19-8-13-17-6-9 5 0 18t17 7zm42 42q8-8-4-19-12-12-20-3-9 8 4 19 12 12 20 3zm57 25q3-11-13-16-15-4-19 7t13 15q15 6 19-6zm63 5q0-13-17-11-16 0-16 11 0 13 17 11 16 0 16-11zm58-10q-2-11-18-9-16 3-14 15t18 8 14-14z"/></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
firefox/assets/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@@ -0,0 +1 @@
<svg aria-hidden="true" data-prefix="fas" data-icon="qrcode" class="svg-inline--fa fa-qrcode fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="#888" d="M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"></path></svg>

After

Width:  |  Height:  |  Size: 425 B

View File

@@ -0,0 +1 @@
<svg aria-hidden="true" data-prefix="fas" data-icon="cog" class="svg-inline--fa fa-cog fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#444" d="M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"></path></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

1
firefox/css/options.css Normal file

File diff suppressed because one or more lines are too long

1
firefox/css/popup.css Normal file
View File

@@ -0,0 +1 @@
@import url(https://fonts.googleapis.com/css?family=Nunito:400,600);*,:after,:before{box-sizing:border-box}:focus{outline:0}ol,ul{list-style-type:none}*{margin:0;padding:0;border:0;outline:0}body{overflow-x:hidden}a:link{text-decoration:none}.d-none{display:none!important}.v-none{visibility:hidden!important}.text-center{text-align:center}.mt-3{margin-top:3em}.selectDisable{-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}body{font-family:Nunito,sans-serif;color:#111}#home{min-width:340px}#home .container{padding:10px}#home .container .navbar .navbar__main{margin:0;padding-left:0}#home .container .navbar .navbar__main li{display:inline-block;justify-content:center;align-items:center}#home .container .navbar .navbar__main .logo__content--holder .main__logo{width:22px;height:22px}#home .container .navbar .navbar__main .options__content-holder{float:right;padding:0 10px}#home .container .navbar .navbar__main .options__content-holder .settings__logo{width:16px;height:16px}#home .container .content__holder .url__content--holder{display:flex;align-items:center;justify-content:center;margin:1.5em 0}#home .container .content__holder .url__content--holder #url__content-inner{margin:0;font-size:20px;color:#333;font-weight:600}#home .container .content__holder .buttons__content--holder{display:flex;align-items:center;padding:0;margin:0 0 0 16px}#home .container .content__holder .buttons__content--holder .copy__content--holder,#home .container .content__holder .buttons__content--holder .qrbtn__content--holder{cursor:pointer;display:flex;align-items:center;justify-content:center;width:28px;height:28px;margin:0 6px;border-radius:100%;box-shadow:0 2px 4px hsla(0,0%,39.2%,.1);background-color:#dedede}#home .container .content__holder .buttons__content--holder .copy__content--holder #button__copy,#home .container .content__holder .buttons__content--holder .copy__content--holder #button__qrcode,#home .container .content__holder .buttons__content--holder .qrbtn__content--holder #button__copy,#home .container .content__holder .buttons__content--holder .qrbtn__content--holder #button__qrcode{width:13px;height:13px}#home .container .content__holder .copy__alert{margin:8px 0 1px}

8
firefox/js/background.js Normal file

File diff suppressed because one or more lines are too long

1
firefox/js/options.js Normal file

File diff suppressed because one or more lines are too long

1
firefox/js/popup.js Normal file

File diff suppressed because one or more lines are too long

48
firefox/manifest.json Normal file
View File

@@ -0,0 +1,48 @@
{
"manifest_version": 2,
"name": "Kutt",
"version": "0.6.1",
"browser_specific_settings": {
"gecko": {
"id": "support@kutt.it"
}
},
"description": "URL Shortener",
"icons": {
"16": "assets/favicon-16.png",
"32": "assets/favicon-32.png",
"48": "assets/favicon-48.png",
"128": "assets/favicon-128.png"
},
"browser_action": {
"default_popup": "popup.html",
"default_icon": {
"16": "assets/favicon-16.png",
"32": "assets/favicon-32.png",
"48": "assets/favicon-48.png",
"128": "assets/favicon-128.png"
},
"default_title": "Kutt",
"browser_style": false
},
"author": "abhijithvijayan",
"background": {
"scripts": [
"js/background.js"
]
},
"homepage_url": "https://github.com/abhijithvijayan/kutt-extension",
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
"options_ui": {
"page": "options.html",
"open_in_tab": true
},
"permissions": [
"tabs",
"storage",
"clipboardWrite",
"clipboardRead",
"https://kutt.it/*/*"
],
"short_name": "Kutt"
}

1
firefox/options.html Normal file
View File

@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Options: Kutt</title><link rel="stylesheet" href="css/options.css"></head><body><section id="options"><div class="container options__content--holder"><div class="head__content--holder text-center"><img class="head__content--logo" src="assets/logo.png"> <a class="head__content--title" href="https://kutt.it" target="_blank" rel="noopener">Kutt.it</a></div><div class="form__content--holder"><form class="form__content"><label class="api__key--label">API Key: <a class="api__label--Qmark" target="_blank" rel="noopener" href="https://kutt.it/login">? <span class="api__label--tooltiptext text-center">Generate from Kutt.it (Settings Page)</span></a></label> <input class="api__key--holder" id="api__key--value" type="password" spellcheck="false"><br><label class="password--label">Set Password <span class="password__label--optional">(Optional): <span class="password__label--tooltiptext text-center">Set Password for the Shortened URLs.<br>(20 Char. Max)</span></span></label> <input class="password--holder" id="password--value" type="password" maxlength="20"><div class="password__check--holder"><input type="checkbox" id="password__view--checkbox"> <span class="password__view--title">Show Password</span></div><br><button class="button__submit" id="button__submit" type="button">Save</button> <label class="saved__alert v-none">Saved!!</label></form></div><div class="footer__text--holder text-center">Made with ❤️ on <a class="github__repo--link" href="https://github.com/abhijithvijayan/kutt-extension" target="_blank" rel="noopener">GitHub</a></div></div></section><script src="js/options.js"></script></body></html>

1
firefox/popup.html Normal file
View File

@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Kutt</title><link rel="stylesheet" href="css/popup.css"></head><body><section id="home"><div class="container"><nav class="navbar"><ul class="navbar__main"><li class="logo__content--holder"><img class="main__logo selectDisable" src="assets/logo.png"></li><li class="options__content-holder" id="options__content-holder" title="Options"><a href="options.html" target="_blank" rel="noopener"><img class="settings__logo selectDisable" src="assets/settings.svg"></a></li></ul></nav><div class="content__holder"><div class="url__content--holder text-center"><h4 id="url__content-inner">Shortening...</h4><ul class="buttons__content--holder d-none"><li class="copy__content--holder" id="button__copy--holder" title="Copy"><img id="button__copy" class="selectDisable" src="assets/copy.svg" alt="copy"></li><li class="qrbtn__content--holder" id="button__qrcode--holder" title="QR code"><img id="button__qrcode" class="selectDisable" src="assets/qrcode.svg" alt="QR Code"></li></ul></div><p class="copy__alert text-center d-none">Copied!!!</p><div class="qrcode__content--holder text-center d-none"><img id="qr_code" src="#" alt="QRCode"></div></div></div></section><script src="js/popup.js"></script></body></html>

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
!function(n){var o={};function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=138)}({138:function(e,t,n){n(139),e.exports=n(140)},139:function(e,t){document.addEventListener("DOMContentLoaded",function(){chrome.storage.local.get(["key","pwd"],function(e){var t="".concat(e.key),n="".concat(e.pwd);"undefined"===t?document.getElementById("api__key--value").value="":(document.getElementById("api__key--value").value=t,document.getElementById("password--value").value=n)})});var n=function(){var e=document.getElementById("api__key--value").value,t=document.getElementById("password--value").value;chrome.storage.local.set({key:e,pwd:t},function(){});var n=document.querySelector(".saved__alert");n.classList.toggle("v-none"),setTimeout(function(){n.classList.toggle("v-none")},1300)};document.getElementById("button__submit").addEventListener("click",function(){n()}),document.addEventListener("keypress",function(e){13===e.keyCode&&n()}),document.getElementById("password__view--checkbox").addEventListener("click",function(){var e=document.getElementById("password--value");"password"===e.type?e.type="text":e.type="password"})},140:function(e,t){e.exports="../options.css"}});

View File

@@ -1 +0,0 @@
!function(n){var o={};function r(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,r),t.l=!0,t.exports}r.m=n,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=141)}({141:function(e,t,n){n(142),e.exports=n(143)},142:function(e,t){var u;document.addEventListener("DOMContentLoaded",function(){function c(e){document.querySelector(e).classList.toggle("d-none")}chrome.tabs.query({active:!0,lastFocusedWindow:!0},function(e){var t,n,o,r;t=e[0].url,n=t.substr(0,6),chrome.storage.local.get(["key","pwd"],function(e){o=e.key,r=e.pwd,"chrome"!==n&&""!==o&&void 0!==o?chrome.runtime.sendMessage({msg:"start",API_key:"".concat(o),pageUrl:"".concat(t),password:"".concat(r)},function(e){"undefined"===(u=e.shortUrl)?document.getElementById("url__content-inner").textContent="API Error!!":(document.getElementById("url__content-inner").textContent=u,document.getElementById("qr_code").src="".concat("https://api.qrserver.com/v1/create-qr-code/?size=120x120&data=").concat(u),c(".buttons__content--holder"))}):document.getElementById("url__content-inner").textContent="chrome"===n?"Not a Valid URL!!":""===o||void 0===o?"Set API Key in Settings!":"Error!!!"})}),document.getElementById("button__copy").addEventListener("click",function(){try{var e="".concat(u),t=document.createElement("textarea");document.body.appendChild(t),t.value=e,t.focus(),t.select(),document.execCommand("copy"),t.remove(),c(".copy__alert"),setTimeout(function(){c(".copy__alert")},1300)}catch(e){console.log("Oops, unable to copy")}}),document.getElementById("button__details").addEventListener("click",function(){window.open("".concat(u,"+"),"_blank").focus()}),document.getElementById("button__qrcode").addEventListener("click",function(){c(".qrcode__content--holder")})})},143:function(e,t){e.exports="../popup.css"}});

BIN
opera.zip Normal file

Binary file not shown.

1
opera/assets/chart.svg Normal file
View File

@@ -0,0 +1 @@
<svg aria-hidden="true" data-prefix="fas" data-icon="chart-line" class="svg-inline--fa fa-chart-line fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#888" d="M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"></path></svg>

After

Width:  |  Height:  |  Size: 680 B

1
opera/assets/copy.svg Normal file
View File

@@ -0,0 +1 @@
<svg aria-hidden="true" data-prefix="far" data-icon="copy" class="svg-inline--fa fa-copy fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="#888" d="M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z"></path></svg>

After

Width:  |  Height:  |  Size: 710 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

BIN
opera/assets/favicon-16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 984 B

BIN
opera/assets/favicon-32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
opera/assets/favicon-48.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

2
opera/assets/github.svg Normal file
View File

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="#444" d="M896 128q209 0 385.5 103t279.5 279.5 103 385.5q0 251-146.5 451.5t-378.5 277.5q-27 5-40-7t-13-30q0-3 .5-76.5t.5-134.5q0-97-52-142 57-6 102.5-18t94-39 81-66.5 53-105 20.5-150.5q0-119-79-206 37-91-8-204-28-9-81 11t-92 44l-38 24q-93-26-192-26t-192 26q-16-11-42.5-27t-83.5-38.5-85-13.5q-45 113-8 204-79 87-79 206 0 85 20.5 150t52.5 105 80.5 67 94 39 102.5 18q-39 36-49 103-21 10-45 15t-57 5-65.5-21.5-55.5-62.5q-19-32-48.5-52t-49.5-24l-20-3q-21 0-29 4.5t-5 11.5 9 14 13 12l7 5q22 10 43.5 38t31.5 51l10 23q13 38 44 61.5t67 30 69.5 7 55.5-3.5l23-4q0 38 .5 88.5t.5 54.5q0 18-13 30t-40 7q-232-77-378.5-277.5t-146.5-451.5q0-209 103-385.5t279.5-279.5 385.5-103zm-477 1103q3-7-7-12-10-3-13 2-3 7 7 12 9 6 13-2zm31 34q7-5-2-16-10-9-16-3-7 5 2 16 10 10 16 3zm30 45q9-7 0-19-8-13-17-6-9 5 0 18t17 7zm42 42q8-8-4-19-12-12-20-3-9 8 4 19 12 12 20 3zm57 25q3-11-13-16-15-4-19 7t13 15q15 6 19-6zm63 5q0-13-17-11-16 0-16 11 0 13 17 11 16 0 16-11zm58-10q-2-11-18-9-16 3-14 15t18 8 14-14z"/></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
opera/assets/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

1
opera/assets/qrcode.svg Normal file
View File

@@ -0,0 +1 @@
<svg aria-hidden="true" data-prefix="fas" data-icon="qrcode" class="svg-inline--fa fa-qrcode fa-w-14" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="#888" d="M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"></path></svg>

After

Width:  |  Height:  |  Size: 425 B

View File

@@ -0,0 +1 @@
<svg aria-hidden="true" data-prefix="fas" data-icon="cog" class="svg-inline--fa fa-cog fa-w-16" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#444" d="M444.788 291.1l42.616 24.599c4.867 2.809 7.126 8.618 5.459 13.985-11.07 35.642-29.97 67.842-54.689 94.586a12.016 12.016 0 0 1-14.832 2.254l-42.584-24.595a191.577 191.577 0 0 1-60.759 35.13v49.182a12.01 12.01 0 0 1-9.377 11.718c-34.956 7.85-72.499 8.256-109.219.007-5.49-1.233-9.403-6.096-9.403-11.723v-49.184a191.555 191.555 0 0 1-60.759-35.13l-42.584 24.595a12.016 12.016 0 0 1-14.832-2.254c-24.718-26.744-43.619-58.944-54.689-94.586-1.667-5.366.592-11.175 5.459-13.985L67.212 291.1a193.48 193.48 0 0 1 0-70.199l-42.616-24.599c-4.867-2.809-7.126-8.618-5.459-13.985 11.07-35.642 29.97-67.842 54.689-94.586a12.016 12.016 0 0 1 14.832-2.254l42.584 24.595a191.577 191.577 0 0 1 60.759-35.13V25.759a12.01 12.01 0 0 1 9.377-11.718c34.956-7.85 72.499-8.256 109.219-.007 5.49 1.233 9.403 6.096 9.403 11.723v49.184a191.555 191.555 0 0 1 60.759 35.13l42.584-24.595a12.016 12.016 0 0 1 14.832 2.254c24.718 26.744 43.619 58.944 54.689 94.586 1.667 5.366-.592 11.175-5.459 13.985L444.788 220.9a193.485 193.485 0 0 1 0 70.2zM336 256c0-44.112-35.888-80-80-80s-80 35.888-80 80 35.888 80 80 80 80-35.888 80-80z"></path></svg>

After

Width:  |  Height:  |  Size: 1.3 KiB

1
opera/css/options.css Normal file

File diff suppressed because one or more lines are too long

1
opera/css/popup.css Normal file
View File

@@ -0,0 +1 @@
@import url(https://fonts.googleapis.com/css?family=Nunito:400,600);*,:after,:before{box-sizing:border-box}:focus{outline:0}ol,ul{list-style-type:none}*{margin:0;padding:0;border:0;outline:0}body{overflow-x:hidden}a:link{text-decoration:none}.d-none{display:none!important}.v-none{visibility:hidden!important}.text-center{text-align:center}.mt-3{margin-top:3em}.selectDisable{-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}body{font-family:Nunito,sans-serif;color:#111}#home{min-width:340px}#home .container{padding:10px}#home .container .navbar .navbar__main{margin:0;padding-left:0}#home .container .navbar .navbar__main li{display:inline-block;justify-content:center;align-items:center}#home .container .navbar .navbar__main .logo__content--holder .main__logo{width:22px;height:22px}#home .container .navbar .navbar__main .options__content-holder{float:right;padding:0 10px}#home .container .navbar .navbar__main .options__content-holder .settings__logo{width:16px;height:16px}#home .container .content__holder .url__content--holder{display:flex;align-items:center;justify-content:center;margin:1.5em 0}#home .container .content__holder .url__content--holder #url__content-inner{margin:0;font-size:20px;color:#333;font-weight:600}#home .container .content__holder .buttons__content--holder{display:flex;align-items:center;padding:0;margin:0 0 0 16px}#home .container .content__holder .buttons__content--holder .copy__content--holder,#home .container .content__holder .buttons__content--holder .qrbtn__content--holder{cursor:pointer;display:flex;align-items:center;justify-content:center;width:28px;height:28px;margin:0 6px;border-radius:100%;box-shadow:0 2px 4px hsla(0,0%,39.2%,.1);background-color:#dedede}#home .container .content__holder .buttons__content--holder .copy__content--holder #button__copy,#home .container .content__holder .buttons__content--holder .copy__content--holder #button__qrcode,#home .container .content__holder .buttons__content--holder .qrbtn__content--holder #button__copy,#home .container .content__holder .buttons__content--holder .qrbtn__content--holder #button__qrcode{width:13px;height:13px}#home .container .content__holder .copy__alert{margin:8px 0 1px}

8
opera/js/background.js Normal file

File diff suppressed because one or more lines are too long

1
opera/js/options.js Normal file

File diff suppressed because one or more lines are too long

1
opera/js/popup.js Normal file

File diff suppressed because one or more lines are too long

View File

@@ -1,14 +1,17 @@
{
"name": "kuttUrl - Shorten URLs",
"version": "0.3.3",
"description": "URL Shortener",
"background": {
"scripts": ["js/background.js"],
"persistent": false
},
"permissions": ["tabs", "storage", "clipboardWrite", "clipboardRead"],
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
"manifest_version": 2,
"name": "Kutt",
"version": "0.6.1",
"description": "URL Shortener",
"developer": {
"name": "abhijithvijayan"
},
"icons": {
"16": "assets/favicon-16.png",
"32": "assets/favicon-32.png",
"48": "assets/favicon-48.png",
"128": "assets/favicon-128.png"
},
"browser_action": {
"default_popup": "popup.html",
"default_icon": {
@@ -16,13 +19,29 @@
"32": "assets/favicon-32.png",
"48": "assets/favicon-48.png",
"128": "assets/favicon-128.png"
}
},
"default_title": "Kutt",
"chrome_style": false
},
"background": {
"persistent": false,
"scripts": [
"js/background.js"
]
},
"homepage_url": "https://github.com/abhijithvijayan/kutt-extension",
"minimum_opera_version": "42",
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
"options_page": "options.html",
"icons": {
"16": "assets/favicon-16.png",
"32": "assets/favicon-32.png",
"48": "assets/favicon-48.png",
"128": "assets/favicon-128.png"
}
}
"options_ui": {
"page": "options.html",
"open_in_tab": true
},
"permissions": [
"tabs",
"storage",
"clipboardRead",
"https://kutt.it/*/*"
],
"short_name": "Kutt"
}

1
opera/options.html Normal file
View File

@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Options: Kutt</title><link rel="stylesheet" href="css/options.css"></head><body><section id="options"><div class="container options__content--holder"><div class="head__content--holder text-center"><img class="head__content--logo" src="assets/logo.png"> <a class="head__content--title" href="https://kutt.it" target="_blank" rel="noopener">Kutt.it</a></div><div class="form__content--holder"><form class="form__content"><label class="api__key--label">API Key: <a class="api__label--Qmark" target="_blank" rel="noopener" href="https://kutt.it/login">? <span class="api__label--tooltiptext text-center">Generate from Kutt.it (Settings Page)</span></a></label> <input class="api__key--holder" id="api__key--value" type="password" spellcheck="false"><br><label class="password--label">Set Password <span class="password__label--optional">(Optional): <span class="password__label--tooltiptext text-center">Set Password for the Shortened URLs.<br>(20 Char. Max)</span></span></label> <input class="password--holder" id="password--value" type="password" maxlength="20"><div class="password__check--holder"><input type="checkbox" id="password__view--checkbox"> <span class="password__view--title">Show Password</span></div><br><button class="button__submit" id="button__submit" type="button">Save</button> <label class="saved__alert v-none">Saved!!</label></form></div><div class="footer__text--holder text-center">Made with ❤️ on <a class="github__repo--link" href="https://github.com/abhijithvijayan/kutt-extension" target="_blank" rel="noopener">GitHub</a></div></div></section><script src="js/options.js"></script></body></html>

1
opera/popup.html Normal file
View File

@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Kutt</title><link rel="stylesheet" href="css/popup.css"></head><body><section id="home"><div class="container"><nav class="navbar"><ul class="navbar__main"><li class="logo__content--holder"><img class="main__logo selectDisable" src="assets/logo.png"></li><li class="options__content-holder" id="options__content-holder" title="Options"><a href="options.html" target="_blank" rel="noopener"><img class="settings__logo selectDisable" src="assets/settings.svg"></a></li></ul></nav><div class="content__holder"><div class="url__content--holder text-center"><h4 id="url__content-inner">Shortening...</h4><ul class="buttons__content--holder d-none"><li class="copy__content--holder" id="button__copy--holder" title="Copy"><img id="button__copy" class="selectDisable" src="assets/copy.svg" alt="copy"></li><li class="qrbtn__content--holder" id="button__qrcode--holder" title="QR code"><img id="button__qrcode" class="selectDisable" src="assets/qrcode.svg" alt="QR Code"></li></ul></div><p class="copy__alert text-center d-none">Copied!!!</p><div class="qrcode__content--holder text-center d-none"><img id="qr_code" src="#" alt="QRCode"></div></div></div></section><script src="js/popup.js"></script></body></html>

View File

@@ -1 +0,0 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Options : kuttUrl</title><link rel="stylesheet" href="css/options.css"></head><body><section id="options"><div class="container options__content--holder"><div class="head__content--holder text-center"><img class="head__content--logo" src="assets/logo.png"><h2 class="head__content--title">kuttUrl</h2></div><div class="form__content--holder"><form class="form__content"><label class="api__key--label">API Key:</label> <input class="api__key--holder" id="api__key--value" spellcheck="false"><br><label class="password--label">Set Password <span class="password__label--optional">(Optional): <span class="password__label--tooltiptext text-center">Set Password for the Shortened URLs.<br>(20 Char. Max)</span></span></label> <input class="password--holder" id="password--value" type="password" maxlength="20"><div class="password__check--holder"><input type="checkbox" id="password__view--checkbox"> <span class="password__view--title">Show Password</span></div><br><button class="button__submit" id="button__submit" type="button">Save</button> <label class="saved__alert v-none">Saved!!</label></form></div><div class="footer__text--holder text-center mt-3">Made with ❤️ on <a class="github__repo--link" href="https://github.com/abhijithvijayan/kuttUrl-Chrome-extension" target="_blank">GitHub</a></div></div></section><script src="js/options.js"></script></body></html>

View File

@@ -1 +0,0 @@
<!doctype html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>kuttUrl</title><link rel="stylesheet" href="css/popup.css"></head><body><section id="home"><div class="container"><nav class="navbar"><ul class="navbar__main"><li class="logo__content--holder"><img class="main__logo" src="assets/logo.png"></li><li class="github__content-holder"><a href="https://github.com/abhijithvijayan/kuttUrl-Chrome-extension" target="_blank" rel="noopener" title="GitHub"><img class="github__logo" src="assets/github.svg"></a></li><li class="options__content-holder" id="options__content-holder" title="Options"><a href="options.html" target="_blank" rel="noopener"><img class="settings__logo" src="assets/settings.svg"></a></li></ul></nav><div class="content__holder"><div class="url__content--holder text-center"><h4 id="url__content-inner">Shortening...</h4></div><ul class="buttons__content--holder d-none"><li class="copy__content--holder"><img id="button__copy" src="assets/copy.svg" alt="copy" title="Copy"></li><li class="details__content--holder"><img id="button__details" src="assets/chart.svg" alt="copy" title="Details"></li><li class="qrbtn__content--holder"><img id="button__qrcode" src="assets/qrcode.svg" alt="copy" title="QR code"></li></ul><p class="copy__alert text-center d-none">Copied!!!</p><div class="qrcode__content--holder text-center d-none"><img id="qr_code" src="#" alt="QRCode"></div></div></div></section><script src="js/popup.js"></script></body></html>