mcstories fixer

depaginates stories on mcstories.com

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name        mcstories fixer
// @namespace   [email protected]
// @include     http://www.mcstories.com/*/index.html
// @include     https://www.mcstories.com/*/index.html
// @include     http://mcstories.com/*/index.html
// @include     https://mcstories.com/*/index.html
// @exclude     http://www.mcstories.com/Titles/index.html
// @exclude     http://www.mcstories.com/Authors/index.html
// @exclude     http://www.mcstories.com/Tags/index.html
// @exclude     http://www.mcstories.com/ReadersPicks/index.html
// @version     1
// @description depaginates stories on mcstories.com
// @grant       none
// @require     http://code.jquery.com/jquery-latest.js
// ==/UserScript==

var link = window.location.toString().split("/");
function fixMC() {
	if ($("tbody").length != 0) {
		var chapters = $("#index > tbody:nth-child(1) > tr").length - 1;
		for (let i = 2; i <= chapters + 1; i++) {
			$("#index > tbody:nth-child(1) > tr:nth-child("+i+")").load("http://www.mcstories.com/"+link[3]+"/"+link[3]+(i-1)+".html #mcstories");
		} 
	} else {
		$(".chapter").load("http://www.mcstories.com/"+link[3]+"/"+link[3]+".html #mcstories");
	}
	$("#index > tbody:nth-child(1) > tr:nth-child(1)").remove();
}

fixMC();

function removeCSS() {
  for (let i = 0; i < document.styleSheets.length; i++) {
		document.styleSheets[i].disabled = true;
	}	
}

removeCSS();