Morele.net - Remove blur

Remove blurred items ("Zobacz w aplikacji")

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Morele.net - Remove blur
// @namespace    https://greasyfork.org
// @version      1.0
// @description  Remove blurred items ("Zobacz w aplikacji")
// @author       Dawid Marzec
// @match        https://lp.morele.net/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    let productElements = document.getElementsByClassName("product-item-blur");

    while (productElements.length > 0) {
        //fix links
        let productLinkElements = productElements[0].getElementsByClassName("product-link");
        if (productLinkElements.length > 0) {
            let link = productLinkElements[0].getAttribute("data-href");
            productLinkElements[0].setAttribute("href", link);
            productLinkElements[0].removeAttribute("data-href");
        }

        //remove blur
        productElements[0].classList.remove("product-item-blur");
    }
})();