Greasy Fork is available in English.

m.jd.com查排名删除广告

查看排名和sku用的

// ==UserScript==
// @name         m.jd.com查排名删除广告
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  查看排名和sku用的
// @author       qq806350554
// @match     https://so.m.jd.com/ware/search.action?*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...




    //$(".m_cc_header_inner").append(`<div id='cha'  style='position: fixed; right: 50px; top: 191px;background-color: red;'>查询排名</div>`)  //添加按钮
    //$("#id-pcprompt-mask").remove()//移出广告节点,失效

    function dianji(){// 定时器内方法
        $("#pcprompt-viewpc").click()//去掉 刚开始的黑屏二维码
        $(".shan").remove()
        $(".search_prolist_ad").parent().parent().parent().parent().remove()//移出广告节点

        for (var i=0;i<$(".search_prolist_item").length;i++){
            let sku= $('.search_prolist_item_inner').eq(i).attr('id').substr(5,)
            $(".search_prolist_item").eq(i).prepend(`<h1 class='shan'>`+'第  '+(i+1)+'名,  '+'sku是   '+sku+`</h1>`)
        }
        i=0

    }

    setInterval(dianji,1000)

})();