DLsite search helper

DLsite検索で未購入作品のみを表示

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @namespace    https://greasyfork.org/ja/users/199792
// @name         DLsite search helper
// @description  DLsite検索で未購入作品のみを表示
// @version      0.1.0
// @match        http://www.dlsite.com/*
// @match        https://www.dlsite.com/*
// @grant        none
// @run-at       document-idle
// ==/UserScript==

'use strict';

NodeList.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator];

(function() {
  const table = document.querySelector('div#search_result_list table.n_worklist');
  const rows  = table.querySelectorAll('tr');

  for(const row of rows) {
    const button_dl = row.querySelector('a.btn_dl');
    if(button_dl) {
      row.style.display = 'none';
    }
  }
})();