Эх сурвалжийг харах

add firefox support + update jquery + repo cleanup + update readme + add xpi build shell script

Noah Vogt 3 жил өмнө
parent
commit
53be2330a5

+ 3 - 2
.gitignore

@@ -1,2 +1,3 @@
-/* IDEA files */
-.idea/*
+*.zip
+*.xpi
+*.crx

+ 11 - 2
README.md

@@ -1,17 +1,26 @@
 # Copy URL on Hover
 # Copy URL on Hover
-This is an extension for chromium-based browsers, so you can hover over a link and hit Y to yank it *like a real vim user*! For feedback, a pop sound will be played after copying.
+This is an extension for both chromium-based and firefox-based browsers, so you can hover over a link and hit Y to yank it *like a real vim user*! For feedback, a pop sound will be played after copying.
 
 
 If you need to copy link addresses more than once, you know how annoying it is. You need to right-click, find the "Copy link address" menu item, and click it. I find this not very efficient and overly complicated, which is why I use this extension for copying links.
 If you need to copy link addresses more than once, you know how annoying it is. You need to right-click, find the "Copy link address" menu item, and click it. I find this not very efficient and overly complicated, which is why I use this extension for copying links.
 
 
 *Note:* This project is a fork from [dhruvtv/copylinkaddress](https://github.com/dhruvtv/copylinkaddress).
 *Note:* This project is a fork from [dhruvtv/copylinkaddress](https://github.com/dhruvtv/copylinkaddress).
 
 
 ## Installation
 ## Installation
+
+### Chromium
 To try the latest dev version of the extension follow the steps below.
 To try the latest dev version of the extension follow the steps below.
 
 
-1. Download the source (either hit the 'ZIP' button you see at the top of the page, or use `git clone`) and extract it to a directory
+1. Download the source (either hit the 'ZIP' button you see at the top of the page, or use `git clone`) and extract it to a directory.
 2. In your chromium-based browser, launch `chrome://extensions`
 2. In your chromium-based browser, launch `chrome://extensions`
 3. Enable 'Developer Mode'.
 3. Enable 'Developer Mode'.
 4. Click 'Load Unpacked Extensions' and point to the above directory.
 4. Click 'Load Unpacked Extensions' and point to the above directory.
 
 
+I will see when a chrome web store version will be available, as i don't want to show give google my ID and pay them 5 USD via credit card.
+
+### Firefox
+You can add the newest via the [firefox add-on on store](https://addons.mozilla.org/en-US/firefox/addon/copy-url-on-hover).
+
+As you cannot persistently add add-ons to vanilla firefox without using a file that is signed from mozilla, this makes it very much unusable to install a dev version. You would have to install the firefox 'developer edition', and set some about:config flags.
+
 ## Known Issue:
 ## Known Issue:
 For my this bug is not really a problem, but for you it may be one: ***Hovering over a link will make focused text input fields lose focus*** (sometimes only temporarily - focus should be restored when you move away from the link). This fault is not yet resolved due to my very limited JavaScript Skills, but if you claim to be a "modern web developer" you are happily invited to fix this issue, of course.
 For my this bug is not really a problem, but for you it may be one: ***Hovering over a link will make focused text input fields lose focus*** (sometimes only temporarily - focus should be restored when you move away from the link). This fault is not yet resolved due to my very limited JavaScript Skills, but if you claim to be a "modern web developer" you are happily invited to fix this issue, of course.

+ 2 - 0
build-xpi.sh

@@ -0,0 +1,2 @@
+#!/bin/sh
+zip -r copy-url-onhover.xpi -FS * --exclude .git*

+ 1 - 1
copylinkaddress.js

@@ -15,7 +15,7 @@ it is technically a zero-length selection in Chrome. So, the extension goes ahea
 When you move away from the link, the caret position is restored.
 When you move away from the link, the caret position is restored.
 */
 */
 
 
-COPYL_DEBUG = true;
+COPYL_DEBUG = false;
 
 
 let url = chrome.runtime.getURL('sounds/pop.mp3');
 let url = chrome.runtime.getURL('sounds/pop.mp3');
 let a = new Audio(url);
 let a = new Audio(url);

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 2
jquery-2.0.3.min.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 1 - 0
jquery-3.6.0.min.js


+ 1 - 1
manifest.json

@@ -6,7 +6,7 @@
     "content_scripts": [
     "content_scripts": [
         {
         {
         "matches": ["<all_urls>"],
         "matches": ["<all_urls>"],
-        "js": ["jquery-2.0.3.min.js", "copylinkaddress.js"]
+        "js": ["jquery-3.6.0.min.js", "copylinkaddress.js"]
         }
         }
     ],
     ],
     "icons": {
     "icons": {

BIN
sounds/ding.mp3


BIN
sounds/pop.mp3


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно