Jelajahi Sumber

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

Noah Vogt 3 tahun lalu
induk
melakukan
53be2330a5
9 mengubah file dengan 19 tambahan dan 8 penghapusan
  1. 3 2
      .gitignore
  2. 11 2
      README.md
  3. 2 0
      build-xpi.sh
  4. 1 1
      copylinkaddress.js
  5. 0 2
      jquery-2.0.3.min.js
  6. 1 0
      jquery-3.6.0.min.js
  7. 1 1
      manifest.json
  8. TEMPAT SAMPAH
      sounds/ding.mp3
  9. TEMPAT SAMPAH
      sounds/pop.mp3

+ 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
-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.
 
 *Note:* This project is a fork from [dhruvtv/copylinkaddress](https://github.com/dhruvtv/copylinkaddress).
 
 ## Installation
+
+### Chromium
 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`
 3. Enable 'Developer Mode'.
 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:
 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.
 */
 
-COPYL_DEBUG = true;
+COPYL_DEBUG = false;
 
 let url = chrome.runtime.getURL('sounds/pop.mp3');
 let a = new Audio(url);

File diff ditekan karena terlalu besar
+ 0 - 2
jquery-2.0.3.min.js


File diff ditekan karena terlalu besar
+ 1 - 0
jquery-3.6.0.min.js


+ 1 - 1
manifest.json

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

TEMPAT SAMPAH
sounds/ding.mp3


TEMPAT SAMPAH
sounds/pop.mp3


Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini