Passei Direto Bypass

Changes a few things to remove the paywall card and unblur the answers.

目前為 2024-03-04 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Passei Direto Bypass
// @name:pt-BR   Passei Direto Bypass
// @namespace    https://gitlab.com/Dwyriel
// @version      1.1.1
// @description  Changes a few things to remove the paywall card and unblur the answers.
// @description:pt-BR Faz algumas modificações no site para remover a limitação e tirar o borrão do texto.
// @author       Dwyriel
// @license      MIT
// @match        *://*passeidireto.com/*
// @grant        none
// @run-at       document-idle
// @homepageURL  https://gitlab.com/Dwyriel/Greasyfork-Scripts
// ==/UserScript==

(function () {
	'use strict';
	function perguntaNamepath() {
		let paywallContainer = document.getElementsByClassName("answer-paywall-container")[0];
		if (!paywallContainer)
			return;
		paywallContainer.parentElement.children[2].remove();
		for (let child of paywallContainer.children) {
			child.style = "user-select: auto";
			let answerCard = child.children[2];
			let text = answerCard.children[0].innerHTML;
			if (!text.includes("<div") && !text.includes("</div>"))
				text = `<div style="padding: 0px; margin-top: 8px;" class="ql-editor">${text}</div>`;
			else
				text = `${text.substring(0, 4)} style="padding: 0px; margin-top: 8px;" ${text.substring(5)}`;
			text += answerCard.children[1].outerHTML;
			answerCard.innerHTML = text;
		}
	}
	function arquivoNamepath() {
		document.querySelectorAll("[class*='BannerSelector_banner-container']").forEach(ele => ele.remove());

	}
	if (window.location.pathname.includes("pergunta"))
		perguntaNamepath();
	if (window.location.pathname.includes("arquivo"))
		arquivoNamepath();
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址