New Plan: Webtoon viewer

Removeing Webtoons ridiculous adult filter made easier

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         New Plan: Webtoon viewer
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Removeing Webtoons ridiculous adult filter made easier
// @author       RAVEN
// @include      http://www.webtoons.com/*
// @include      https://www.webtoons.com/*
// @include      http://m.webtoons.com/*
// @include      https://m.webtoons.com/*
// @icon         https://static.wikia.nocookie.net/logopedia/images/4/49/Old_webtoons_logo.png/revision/latest?cb=20190831200032
// @grant        none
// @license      none
// ==/UserScript==

//notes you may change the website by adding a include of the site

// Made on 5/8/25

/* Webtoon - Disable Loginfra tracking by RandomUsername404 */

// I did not ask for permission

function findLink(el) {
    if (el.tagName == 'A' && el.href) {
        return el.href;
    } else if (el.parentElement) {
        return findLink(el.parentElement);
    } else {
        return null;
    }
};

function callback(e) {
    const link = findLink(e.target);
    if ((link == null || link.slice(link.length - 1) == "#") || link.id == "btnLogIn") {
        return;
    }
    e.preventDefault();
    window.location.href = link;

};

document.addEventListener('click', callback, false);

/* Webtoon - Disable Loginfra tracking by RandomUsername404 */

/* Allow scroling */

function wait(ms) {
  return new Promise(resolve => setTimeout(resolve, ms));
}



async function runSixteenTimes() {
  for (let i = 0; i < 16; i++) {
    document.body.style.overflow = "visible";
    document.querySelectorAll('div.ly_wrap.fixed.on').forEach(el => el.remove());
    document.querySelectorAll('div.ly_dim').forEach(el => el.remove());
    console.log(`Run ${i + 1}: overflow set to visible`);

    if (i < 15) {
      await wait(1000); // Wait 10 seconds between runs, but not after the last one
    }
  }
}

runSixteenTimes();