Greasy Fork is available in English.

172商品详情界面清晰度优化

让商品详情页更清晰

// ==UserScript==
// @name         172商品详情界面清晰度优化
// @namespace    http://tampermonkey.net/
// @version      1.0.2
// @description  让商品详情页更清晰
// @author       aotmd
// @match        https://haokawx.lot-ml.com/h5order/index*
// @noframes
// @license MIT
// @run-at document-body
// @grant        none
// ==/UserScript==

(function () {

    addStyle(`
body, body > * {
    max-width: 810px!important;
}
.view_bottom {
    max-width: calc(800px - 6%)!important;
}
.wjcen {
    display: none;
}
    `);

    //添加css样式
    function addStyle(rules) {
        let styleElement = document.createElement('style');
        styleElement["type"] = 'text/css';
        document.getElementsByTagName('head')[0].appendChild(styleElement);
        styleElement.appendChild(document.createTextNode(rules));
    }
})();