Skip to content
Snippets Groups Projects
Commit 5f4de454 authored by Dwyriel's avatar Dwyriel :purple_heart:
Browse files

PDB Fix 'Arquivo' page & YCVP formatting

parent 7362f835
Branches
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// @name Passei Direto Bypass // @name Passei Direto Bypass
// @name:pt-BR Passei Direto Bypass // @name:pt-BR Passei Direto Bypass
// @namespace https://gitlab.com/Dwyriel // @namespace https://gitlab.com/Dwyriel
// @version 1.4.0 // @version 1.4.1
// @description Changes a few things to remove the paywall card and unblur the answers. // @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. // @description:pt-BR Faz algumas modificações no site para remover a limitação e tirar o borrão do texto.
// @author Dwyriel // @author Dwyriel
...@@ -62,16 +62,11 @@ ...@@ -62,16 +62,11 @@
addEventListener("scroll", smallPageRemoveBlurFunc); addEventListener("scroll", smallPageRemoveBlurFunc);
} }
function arquivoPageFixBigWidth() { function arquivoPageFixBigWidth() {
let images = [...document.querySelectorAll("img[loading='lazy'][class*='paywall']")]; for (let fileElement of document.querySelectorAll("div[class*='paywall FileContainerHtmlPreviewPage']")) {
if (images.length > 0) let clonedNode = fileElement.cloneNode(true);
for (let image of images)
if (image.complete) {
image.setAttribute("loading", "eager");
let PaywallParent = image.closest("[class*='paywall FileHtmlViewer_file-html-container']");
let clonedNode = PaywallParent.cloneNode(true);
clonedNode.classList.remove("paywall"); clonedNode.classList.remove("paywall");
PaywallParent.after(clonedNode); fileElement.after(clonedNode);
PaywallParent.remove(); fileElement.remove();
removeBlur(clonedNode); removeBlur(clonedNode);
} }
handleBigPage1 = setTimeout(arquivoPageFixBigWidth, 200); handleBigPage1 = setTimeout(arquivoPageFixBigWidth, 200);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment