diff --git a/README.md b/README.md index 5960ae3..39092c6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,35 @@ -# ff-ext +# Save as eBook (.epub) +## How to install it -# Credits +### Chrome (tested on v. 52.0.2743.116) + +``` +1. Navigate to chrome://extensions/ +2. Load unpacked extension ... +3. Select the extension's directory +``` + +### Firefox (tested on v. 50.0a2 (2016-08-15)) + +``` +1. Navigate to about:debugging +2. Load temporary add-on ... +3. Select the extension's directory +``` + +### Opera (tested on v. 39.0.2256.48) + +``` +1. Navigate to opera:extensions +2. Load unpacked extension ... +3. Select the extension's directory +``` + +# Problems + +# To-Do + +## Credits https://www.iconfinder.com/icons/1031371/book_empty_library_reading_icon#size=128 diff --git a/extractHtml.js b/extractHtml.js index b9a0b2f..deeae7e 100644 --- a/extractHtml.js +++ b/extractHtml.js @@ -157,9 +157,7 @@ function sanitize(rawContentString) { dirty = '
' + $wdirty.html() + '
'; //////////////// - return force(dirty); - - if ($('*').length < maxNrOfElements) { + if ($('*').length > maxNrOfElements) { return force(dirty); } diff --git a/menu.js b/menu.js index ad58c3f..3c845ac 100644 --- a/menu.js +++ b/menu.js @@ -7,8 +7,7 @@ document.getElementById("editChapters").onclick = function() { chrome.tabs.query({ currentWindow: true, - active: true, - highlighted: true + active: true }, function(tab) { chrome.tabs.executeScript(tab[0].id, {file: '/jquery.js'}); @@ -36,8 +35,7 @@ function dispatch(action, justAddToBuffer) { } chrome.tabs.query({ currentWindow: true, - active: true, - highlighted: true + active: true }, function(tab) { chrome.tabs.executeScript(tab[0].id, {file: '/jquery.js'});