Literotica Fixer

depaginates literotica stories and removes CSS

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey 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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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();