Unhide eNotes

Unhide eNotes answers and articles!

ของเมื่อวันที่ 21-01-2025 ดู เวอร์ชันล่าสุด

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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         Unhide eNotes
// @namespace    https://naeembolchhi.github.io/
// @version      0.53
// @description  Unhide eNotes answers and articles!
// @author       NaeemBolchhi
// @license      GPL-3.0-or-later
// @match        https://www.enotes.com/*
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAkBQTFRF/////vz8+Ojl8tPP67qy46CV45+U5aed67y089XQ+ero//7++ezp6rau13VlzldEyEMtxz4oyUQvz1lG2Xxt7Ly1+Obj9uDd5aWbz1tIyEAqzlZD4ZiM+ejm/ff2562kzlVBxz8p0V9N7cK7/vz7+u7s3Yh6ykgzykg0/fj4/vv64ZeLyEEr3IV36bOq5KGW4ZaKykcyykk02Xts/fn47L620mJRy0w48c7J6K6kyEIt8c/K5aaczVM/z1pH+Ofk8tPOy0s21Wtb+u/u9t/b0F1L24N1/Pb11nBg3o2B/fb19NrWzVI+78nD6rat1W1c/PPx67uzyEIs13Rk02VUy0s389bRyUUv7sS93Yp93Yt+24R2y0o19NjT1GlY0F5M+u/t5KK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L0A8H61g0Y2uvjNxKRDGBg05LNW7Yiaw/fth1fQYINdDqw7XC1bQKCnbt279mLHqvEuUN1XyMQLN1PjuZRMAqGFAAAQRCVzMZUEeAAAAAASUVORK5CYII=
// @run-at       document-end
// @grant        none
// ==/UserScript==

const location = window.location.href;

function addStyle() {
    let style = document.createElement('style');
    style.setAttribute('type','text/css');
    style.innerHTML = `* {
        color: initial;
        text-shadow: none;
        filter: initial;
        -webkit-user-select: initial;
        -moz-user-select: initial;
        -ms-user-select: initial;
        user-select: initial;
        pointer-events: initial;
        cursor: auto;
    }
    *[href], *[href] *, *[href] * *, *[href] * * * {
        cursor: pointer;
    }
    .u-paywall, .u-paywall > p {
        line-height: 1.77;
        font-family: "HCo Ideal Sans SSm", verdana, sans-serif;
        font-size: var(--font-size-s, 18px);
    }
    .u-paywall * + * {
        margin-top: 20px;
    }
    #enotes-paywall, .u-align--center.u-padding--and-half--top.u-font--s, .tonottobe {
        display: none;
    }`.replace(/\;/g,' !important;');
    document.head.appendChild(style);
}

function removeStuff() {
    let ads = document.querySelectorAll(`*[id*='-ad-']`);

    for (let x = 0; x < ads.length; x ++) {
        ads[x].parentNode.classList.add('tonottobe');
    }
}

try {addStyle();} catch {}
try {removeStuff();} catch {}