Censor Site

//censor window.addEventListener(‘DOMContentLoaded’, function() { if(document.body.classList.contains(‘adult-content’)) { censorText(); } }); function censorText() { // Find the element by its class const element = document.querySelector(‘.content-blocked.login-required’); // Check if the element exists and contains the target text if (element && element.innerHTML.includes(‘Subscriber’)) { element.innerHTML…Continue reading

Censor Page Logic

document.getElementById(‘censorTextBtn’).addEventListener(‘click’, function () { var uncensoredText = document.getElementById(‘uncensoredText’).innerHTML; var censoredWords = [“pornhub”, “fucked”, “orgasm”, “semen”,”cock”, “ejaculated”, “ejaculating”,”ejaculate”, “fuck”, “fucking”,”clit”, “ejaculation”, “vagina”, “cunt”, “tits”,”titties”, “masochist”, “masturbate”, “masturbated”,”dildo”, “slut”, “motherfucker”,”cunnilingus”, “cocks”, “blowjobs”,”whore”, “whores”, “cum”,”cums”, “porn”, “pornography”,”clitoris”, “shits”, “shit”, “penis”, “breast”, “breasts”, “nipple”,…Continue reading

Info-Chapters Show/Hide chapter-release-date

document.querySelectorAll(‘li’).forEach(function(li) { const chapterReleaseDates = li.querySelectorAll(‘.chapter-release-date’); if (chapterReleaseDates.length > 1) { chapterReleaseDates.forEach(function(date) { if (date.classList.contains(‘salmon’)) { date.style.display = ‘none’; } }); } });Continue reading

Info-Chapters Show/Hide chapter-release-date

document.querySelectorAll(‘li’).forEach(function(li) { const chapterReleaseDates = li.querySelectorAll(‘.chapter-release-date’); if (chapterReleaseDates.length > 1) { chapterReleaseDates.forEach(function(date) { if (date.classList.contains(‘salmon’)) { date.style.display = ‘none’; } }); } });Continue reading

User Settings Badge Checker

var madaraBadge = document.querySelector(‘select[name=”madara-manga-badge”]’); var madaraStatus = document.querySelector(‘select[name=”madara-manga-status”]’); if(madaraBadge){ madaraBadge.addEventListener(‘change’, function(e) { if (e.target.value !== ‘completed’ && e.target.value !== ”) { alert(‘Invalid choice’); e.target.value = ”; } if(madaraStatus){ if(e.target.value == ‘completed’){ madaraStatus.value = ‘end’; } else { madaraStatus.value = ‘on-going’…Continue reading

User Settings Add Manga Type Checker

var madaraMangaType = document.querySelector(‘select[name=”madara-manga-type”]’) var krTag = document.getElementById(‘tag-kr’) var cnTag = document.getElementById(‘tag-cn’) var jpTag = document.getElementById(‘tag-jp’) if(madaraMangaType){ madaraMangaType.addEventListener(‘change’, function(e) { if(madaraMangaType.value == “web-novel-cn”){ cnTag.checked = true; krTag.checked = false; jpTag.checked = false; } else if (madaraMangaType.value == “web-novel-kr”){ krTag.checked =…Continue reading

eaglegame

const canvas = document.getElementById(‘game-canvas’); const ctx = canvas.getContext(‘2d’); class Character { constructor(name, x, y, width, height, color, level, hp, attack, xp) { this.name = name; this.x = x; this.y = y; this.width = width; this.height = height; this.color = color;…Continue reading

link cheng

document.addEventListener(“DOMContentLoaded”, function() { var bookingBtn = document.querySelector(“.o-header__booking-btns a[href=’https://hwc.wuyuanweb.com/reservation/’]”); if (bookingBtn) { bookingBtn.href = “https://new.link/reservation/”; // 將此處更改為新連結 } var remoteConsultationBtn = document.querySelector(“.o-header__booking-btns a[href=’https://hwc.wuyuanweb.com/remote-consultation/’]”); if (remoteConsultationBtn) { remoteConsultationBtn.href = “https://new.link/remote-consultation/”; // 將此處更改為新連結 } });Continue reading