<!doctype html>
<!--
Fakku! Download Links Generator
Written by: jomkingal
Date Written: September 8, 2014 7:14:08 AM
Date Finished: September 8, 2014 8:15:25 AM
Reason for creating this fap: Due to DDoS attack lately, Fakku! now uses CloudFlare which 
	made it hard for download manager to download doujin from Fakku!.
	I recently started reading Yuuki Homura Sensei's work and love it!
	So on that note, I made this code in the hopes that downloading with
	download managers such as IDM will now be possible. Hopefully. haha~
	For those who doesn't have an Internet Connection all the time, and for
	those who want it on-the-go, This one is for you! xD
-->
<html>
	<head>
		<title>Fakku! Download Links Generator v0.1 by jomkingal</title>
		<script src="script.js"></script>
	</head>
<body>
	<p>Step 0: Make sure you have IDM installed and integrated on your browser.<br>
	I use Google Chrome. Before anything else, please visit the following links to make sure everything else works.<br>
	http://www.fakku.net/<br>
	https://t.fakku.net/images/manga/s/[Shoukaki,_Earthean]_Kantai_Collection_-_Sono_Wonna_Fushidara_ni_tsuki/images/001.jpg/</p>
	<p>Step 1: Copy the Image URL of the first image of the Doujin you desire. (Take note of the link, it should end with 001.jpg. Else, It won't work.)
	<br>e.g. (https://t.fakku.net/images/manga/s/[Shoukaki,_Earthean]_Kantai_Collection_-_Sono_Wonna_Fushidara_ni_tsuki/images/001.jpg)</p>
	<input type="text" id="fname">
	<p>Step 2: Enter the number of pages of the doujin.</p>
	<input type="text" id="fnum"> Pages
	<p>Step 3: Click the button to loop generate the download links.</p>
	<button onclick="myFunction()">Loop Cast</button>
	<p id="demo"></p>
	<p>Step 4: Right-click on anywhere on the page and click Download all Links with IDM. Enjoy!</p>
</body>
</html>
// Code goes here
			function myFunction() {
			var text = "";
			var str = document.getElementById("fname").value;
			var res = str.split("001.jpg");
			var l = document.getElementById("fnum").value;
			for (i = 1; i <= l; i++) {
				
				if (i < 10) {
				text += ("<a href=\""+res[0]);
				text += ("00" + i) + ".jpg\">";
				text += ("00" + i) + ".jpg";
				text += "</a><br>"; }
				
				else if (i >= 10) {
				text += ("<a href=\""+res[0]);
				text += ("0" + i) + ".jpg\">";
				text += ("0" + i) + ".jpg";
				text += "</a><br>";	}
				
				else if (i >= 100) {
				text += ("<a href=\""+res[0]);
				text += i + ".jpg\">";
				text += i + ".jpg";
				text += "</a><br>"; }
			}
			document.getElementById("demo").innerHTML = text;
			//alert(l);
			}
/* Styles go here */

Fakku! Download Links Generator
Written by: jomkingal
Date Written: September 8, 2014 7:14:08 AM
Date Finished: September 8, 2014 8:15:25 AM
Reason for creating this fap: Due to DDoS attack lately, Fakku! now uses CloudFlare which 
	made it hard for download manager to download doujin from Fakku!.
	I recently started reading Yuuki Homura Sensei's work and love it!
	So on that note, I made this code in the hopes that downloading with
	download managers such as IDM will now be possible. Hopefully. haha~
	For those who doesn't have an Internet Connection all the time, and for
	those who want it on-the-go, This one is for you! xD