panhaiyang / filter rank

// ==UserScript==
// @name         filter rank
// @namespace    http://tampermonkey.net/
// @version      1.3
// @description  try to take over the world!
// @author       You
// @match        https://javmenu.com/zh/rank/censored/*
// @grant        none
// @license MIT
// ==/UserScript==

(function () {
  'use strict';
  let filterArrs = ['SSIS-881', 'IPZZ-170', 'MIDV-502', 'FSDSS-673', '色站搭建服务']
  // filterArrs.forEach(item=>{
  document.querySelectorAll('.card-title.text-dark').forEach(title => {
    if (filterArrs.includes(title.innerText)) {
      title.parentNode.parentNode.parentNode.parentNode.remove()
    }
  })
  // })
  //去除无字幕
  document.querySelectorAll('.video-list-item-tag-wrapper').forEach(item => {
    let texts = Array.from(item.children).map(sp => sp.innerText)
    if (!texts.includes('字幕')) {
      item.parentNode.parentNode.parentNode.parentNode.remove()
    }
  })
})();