Created
April 17, 2020 11:13
-
-
Save consatan/ae75bd28256940c639b4dc04cb818b98 to your computer and use it in GitHub Desktop.
只看京东自营产品
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 京东只看自营 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description 只看京东自营产品 | |
// @author Chopin Ngo <consatan@gmail.com> | |
// @match https://list.jd.com/list.html* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
document.querySelectorAll('.p-icons.J-pro-icons').forEach((item) => { | |
if (!item.querySelector('.icon-group-1.goods-icons.J-picon-tips')) { | |
item.parentElement.parentElement.style.display = 'none'; | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment