Skip to content

Commit

Permalink
v1.0.5
Browse files Browse the repository at this point in the history
Added back to previous history
  • Loading branch information
d3ward committed Jul 20, 2021
1 parent 4b4f75c commit a485cf9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "Floatly",
"version": "1.0.4",
"version": "1.0.5",
"description": "Floatly is an awesome floating button that brings quick actions to any website.",
"permissions": ["tabs", "clipboardWrite","storage","activeTab","http://*/","https://*/","bookmarks"],
"background": {
Expand Down
8 changes: 5 additions & 3 deletions src/js/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ var acDivs = [
'<div id="ac15"><svg fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z" clip-rule="evenodd"></path></svg></div>',
'<div id="ac16"><svg fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M2 5a2 2 0 012-2h12a2 2 0 012 2v10a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm3.293 1.293a1 1 0 011.414 0l3 3a1 1 0 010 1.414l-3 3a1 1 0 01-1.414-1.414L7.586 10 5.293 7.707a1 1 0 010-1.414zM11 12a1 1 0 100 2h3a1 1 0 100-2h-3z" clip-rule="evenodd"></path></svg></div>',
'<div id="ac17"><svg fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"></path></svg></div>',
'<div id="ac18"><svg fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15 8a3 3 0 10-2.977-2.63l-4.94 2.47a3 3 0 100 4.319l4.94 2.47a3 3 0 10.895-1.789l-4.94-2.47a3.027 3.027 0 000-.74l4.94-2.47C13.456 7.68 14.19 8 15 8z"></path></svg></div>'
'<div id="ac18"><svg fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15 8a3 3 0 10-2.977-2.63l-4.94 2.47a3 3 0 100 4.319l4.94 2.47a3 3 0 10.895-1.789l-4.94-2.47a3.027 3.027 0 000-.74l4.94-2.47C13.456 7.68 14.19 8 15 8z"></path></svg></div>',
'<div id="ac19"><svg fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z" clip-rule="evenodd"></path></svg></div>'
];

var aFunctions = {
Expand All @@ -103,14 +104,15 @@ var acDivs = [
ac15: function () {window.location.reload();},
ac16: function () {chrome.runtime.sendMessage({eruda: true})},
ac17: function() {chrome.runtime.sendMessage({book:true,url:window.location.href ,title:document.title});},
ac18: function() {try {navigator.share({url:window.location.href})} catch(err) {console.log(err)}}
ac18: function() {try {navigator.share({url:window.location.href})} catch(err) {console.log(err)}},
ac19: function(){window.history.back();}
};

var splist,posf;
// Get use options and inject
chrome.storage.local.get({
colors: ["#0878A5", "#ffffff", "#0878A5", "#ffffff", "#101010"],
actions: [0, 1, 2, 3, 4, 5, 6,7,8,9,10,11,12,13,14,15,16],
actions: [0, 1, 2, 3, 4, 5, 6,7,8,9,10,11,12,13,14,15,16,17,18,19],
userActions: [],
fpos:0,
blist:["github.com"],
Expand Down
2 changes: 1 addition & 1 deletion src/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h4>You can use keywords or hosts . For example "github" will block all website
</main>
<footer>
<div class="grid">
<div>Floatly v1.0.4 </div>
<div>Floatly v1.0.5 </div>
<div>Licensed under <b><a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">(CC BY-NC-SA
4.0)</a></b></div>
<div><a href="https://heroicons.dev/">Heroicons</a> licensed under <b><a
Expand Down
8 changes: 5 additions & 3 deletions src/options/options.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a485cf9

Please sign in to comment.