Mirror site is read only www.netnr.com
netnr/ fr-remove-watermark.js 2021-10-19 10:50
fr remove watermark
let wm = {
    startDate: Date.now(),
    remove: () => {
        try {
            document.querySelectorAll('.copyrightInfo-div').forEach(c => {
                c.style.transform = "translateY(9999px)"
            })

            document.querySelectorAll('div').forEach(node => {
                if (node.innerHTML.trim().startsWith("正在试用功能——")) {
                    node.style.transform = node.previousElementSibling.style.transform = "translateY(9999px)"
                }
            })
        } catch (err) { }
    },
    run: () => {
        wm.remove();
        if (Date.now() - wm.startDate < 1000 * 20) {
            setTimeout(() => {
                wm.run()
            }, 200)
        } else {
            setTimeout(() => {
                wm.run()
            }, 1000 * 30)
        }
    },
    init: () => {
        wm.run();
        window.addEventListener('resize', () => {
            window.clearTimeout(wm.si);
            wm.si = setTimeout(() => {
                wm.remove()
            }, 100)
        }, false)
    }
}

wm.init();