This commit is contained in:
alexadam 2016-08-17 18:41:58 +03:00
parent c1b85a6379
commit d54cfe8ab7
3 changed files with 34 additions and 9 deletions

View file

@ -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 https://www.iconfinder.com/icons/1031371/book_empty_library_reading_icon#size=128

View file

@ -157,9 +157,7 @@ function sanitize(rawContentString) {
dirty = '<div>' + $wdirty.html() + '</div>'; dirty = '<div>' + $wdirty.html() + '</div>';
//////////////// ////////////////
return force(dirty); if ($('*').length > maxNrOfElements) {
if ($('*').length < maxNrOfElements) {
return force(dirty); return force(dirty);
} }

View file

@ -7,8 +7,7 @@ document.getElementById("editChapters").onclick = function() {
chrome.tabs.query({ chrome.tabs.query({
currentWindow: true, currentWindow: true,
active: true, active: true
highlighted: true
}, function(tab) { }, function(tab) {
chrome.tabs.executeScript(tab[0].id, {file: '/jquery.js'}); chrome.tabs.executeScript(tab[0].id, {file: '/jquery.js'});
@ -36,8 +35,7 @@ function dispatch(action, justAddToBuffer) {
} }
chrome.tabs.query({ chrome.tabs.query({
currentWindow: true, currentWindow: true,
active: true, active: true
highlighted: true
}, function(tab) { }, function(tab) {
chrome.tabs.executeScript(tab[0].id, {file: '/jquery.js'}); chrome.tabs.executeScript(tab[0].id, {file: '/jquery.js'});