diff --git a/README.md b/README.md index 6743937..54f7527 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ With Injecta, you can now do this without having to copy/paste scripts into the ![screenshot][screenshot] -Click the button on the top right, select your scripts, then hit "Inject". +Click the button on the top right, select your scripts, enter desired CDN urls, then hit "Inject". ## License diff --git a/assets/screenshot.png b/assets/screenshot.png index 200f10b..e4f08d4 100644 Binary files a/assets/screenshot.png and b/assets/screenshot.png differ diff --git a/manifest.json b/manifest.json index 1304228..5f53692 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "Injecta", - "version": "0.0.2", + "version": "0.0.3", "manifest_version": 2, "description": "Inject JavaScript libraries into your current page.", "homepage_url": "https://ian.pw", diff --git a/popup.html b/popup.html index 767b87a..dca24ad 100644 --- a/popup.html +++ b/popup.html @@ -9,6 +9,10 @@

Inject Libraries

Select the libraries you wish to inject below.

+
+ Custom Script: + +
diff --git a/scripts/popup.js b/scripts/popup.js index 533b0c4..f6b1b4d 100644 --- a/scripts/popup.js +++ b/scripts/popup.js @@ -41,6 +41,17 @@ $(function() { + ''; }).join('')); + $('#custom-script').submit((e) => { + var url = $('#script-url').val(); + $('#libraryList').append( + `
  • ` + + `
  • ` + ); + + $('#script-url').val('') + return false; + }) + $('#inject').click(function() { var selectedLibs = []; $('#libraryList li').each(function(el) {