-
Notifications
You must be signed in to change notification settings - Fork 1
/
ePubConverter.icabmodule
45 lines (39 loc) · 11.4 KB
/
ePubConverter.icabmodule
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//startconfig
//id=de.icab.ePubConverter
//icon=iVBORw0KGgoAAAANSUhEUgAAACwAAAAkCAYAAADy19hsAAAWnGlDQ1BJQ0MgUHJvZmlsZQAAeNrtmldUFM+XgG/3RGaGPOQ05JwzCJJzkiRJchAkSRIVUQREQEVBUIJKUhQUCSKISE4CgooKKgqIEswCIhJkH9yf/z3/c3Zfdt/W+/Sd2123q+o+9HdOFYCEnk9kZCgKAGHhMVH2pgY0F1c3GuEFIIACGQjA6eMXHalvZ2cF/22sPAMEAGBU1icyMnTKUUFqyCRadobNfeIE7R4P/M/BHOXi6gaA2AEANeg3+wMA1fc3xwMAdV9MZAwAcgIAqH67ffwBkGIAkIlytDcEQIYAiJQgR3tDALpxACLF19HeEID5LQCR4uMTFQTA9RUAaD4+QUEA3Ey/2TcIgFsBAGhxfkExANx2AHiWcP/gcACaPwBe1z8g2g9ArBwAvPyj/cIAxLEA8DUsLMIfQHwZACT8IqNiACR4AUDExdWN9ntZ0XYAWkMAyON/5bwTAJo8AKjq/8oJkwAo4wD3hP+VW7IHBAAQ9pHoQGUlAABAKAYAuNdbW0tiAIRsgM0zW1vrpVtbm2UAmAmA9lC/2Ki43+OxAAA4IAEjUIEL+EEYJEAWlEAdtEEPjMECbMERXMET/GA3hEEU7IMESIJjkAmnIRcK4BKUwzWohjpohBbogF4YhIfwFF7AFLyD9/AVvsM6giAEhIKwIJwIPyKKSCOKiAaiixgjlog94op4I4FIGBKLJCDJSAaSjeQjJchVpAZpQtqRfuQhMo5MIQvIN2QNRVEySkV5UVFUDlVH9VAL1AH1QAPRSHQ/moyeRM+hJWgV2oC2oQPoE3QSfY8uo1sYEoYNQ8NIY9QxBhhrj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zue5s9ixvrR1FBSEOC5udPgaqRoJQaCI0zAHPjRU5vF7XWlNnu9md/H5EkGvnOe8+GFLA8zy01kxlf8c/sk+HfLVoGtUOdjpPRQqAa+Kwr1XlisIY36NrzXZ6nAP5dBOHjJ3lr943yOoVrLXM6VcYlxOBg/lhbxO72KkOBvSJ95ncPsaYCtlaNpuPgutUBAB19LODJ3g7cTgM9h4LXLAPc5Pex7jzLOCE+UKD7WG7PIaLG5ugQ1w+HnM1b6RQLHxWrTrZLo/xbtWRMOR5LDDu/CwUbxEaTC+d3iMIUrGCjlMg9qa7loq3WnXRwTeZrHq2IHlJ5i5w6qSHDvdhxBqUshsqiTZk4coVR+VWI320e99lsu7pkB4WS5100555CEGKsjG7TnpZwcKO41wB8DyN41TWsJJFqlQHbSsPMd1wHINLve5j28r9eNbDcZxrqpqNsRRijPxI2bv3c62NjY0xAtcpYUoKhqjF1gVYZPGcrOWlZU6d+m34IyWRA9zZ2Tk3NTX1hW3btpJKpfy00PiVg7U20NQfjck/szbopmA0/trcaIwJvjf5760J1pvI3Ji8rKXFJV56aRTP8x6YmJi4cH3/DLxefrded+2/gHjVxEzGK6gAAAAASUVORK5CYII=
//title=Convert to ePub
//description=Converts the current page to ePub e-book format.
//var=confirmation;type=confirmation;default=false;
//var=out_lang;title=Output Language;default=en
//endconfig
var doAction = (confirmation == false);
if (confirmation) {
var text = "Do you want to convert this page to ePub format?";
doAction = confirm(text);
}
if (doAction) {
var d = document;
try {
if(!d.body || d.body.innerHTML == '') {
throw(0);
}
var dotEPUBcss = d.createElement('link');
dotEPUBcss.rel = 'stylesheet';
dotEPUBcss.href = 'http://dotepub.com/s/dotEPUB-favlet.css';
dotEPUBcss.type = 'text/css';dotEPUBcss.media='screen';
d.getElementsByTagName('head')[0].appendChild(dotEPUBcss);
dotEPUBstatus = d.createElement('div');
dotEPUBstatus.setAttribute('id','dotepub');
dotEPUBstatus.innerHTML = '<div id="status"><p>working...</p></div>';
d.body.appendChild(dotEPUBstatus);
var dotEPUB = d.createElement('script');
dotEPUB.type = 'text/javascript';
dotEPUB.charset = out_lang;
dotEPUB.src = 'http://dotepub.com/j/dotepub.js?x='+(Math.random());
dotEPUB_links = 1;
dotEPUB_lang = out_lang;
d.getElementsByTagName('head')[0].appendChild(dotEPUB);
} catch(e) {
alert('The page has no content or it is not fully loaded. Please, wait till the page is loaded.');
}
}