ZYB001

testScript!

  1. // ==UserScript==
  2. // @name ZYB001
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description testScript!
  6. // @author You
  7. // @match https://*/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=163.com
  9. // @grant none
  10. // @require https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. (function () {
  15. "use strict";
  16. function shaixuan() {
  17. $(".extend-product-item").each(function (index, element) {
  18. let collect1 = $(this).find(".collect").text();
  19. if (collect1.replace(/[^\d]/g, "") < 20) {
  20. $(this).remove();
  21. }
  22. });
  23. }
  24. window.setInterval(function () {
  25. shaixuan();
  26. }, 500);
  27. })();