Literotica Fixer

depaginates literotica stories and removes CSS

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Literotica Fixer
// @namespace   [email protected]
// @description depaginates literotica stories and removes CSS
// @include     https://www.literotica.com/s/*
// @include     https://literotica.com/s/*
// @version     1
// @grant       none
// @require     http://code.jquery.com/jquery-latest.js
// ==/UserScript==

var divCount = 1;
var pages = Number($(".b-pager-caption-t").text().split(" ")[0]);
var i = pages - 1;
function litFix() {
	if (window.location.toString().includes("?") === false) {
	window.location = window.location + "?page=" + pages;
	}
	if (pages > 1) {
		$(".b-story-body-x").prepend("<br>");
		$(".b-story-body-x").prepend("<div></div>");
		$(".b-story-body-x > div:nth-child("+divCount+")").load(window.location.toString().split("=")[0] + "=" + i +" .b-story-body-x");
		i--;
		while (i > 0) {
			litFix();
		}
	}
	$(".b-pager").remove();
}

function removeCSS() {
	for (var i = document.styleSheets.length - 1; i >= 0; i--) {
		document.styleSheets[i].disabled = true;
	}
}

litFix();
removeCSS();