Newegg Smart TV Filter

"Smart" TVs are a bad thing. When browsing newegg for TVs, skip anything that admits to being a smart tv.

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name     Newegg Smart TV Filter
// @version  1
// @grant    none
// @match 	 *://*.newegg.com/*
// @require	 https://code.jquery.com/jquery-3.4.1.min.js
// @description:en  "Smart" TVs are a bad thing. When browsing newegg for TVs, skip anything that admits to being a smart tv.
// @namespace adamrgrey.com
// @description "Smart" TVs are a bad thing. When browsing newegg for TVs, skip anything that admits to being a smart tv.
// ==/UserScript==

let oldJQueryContains = jQuery.expr[':'].contains;
jQuery.expr[':'].contains = function(a, i, m) {
  return jQuery(a).text().toUpperCase()
      .indexOf(m[3].toUpperCase()) >= 0;
};

if($("li.is-current:contains('TV')").length > 0){
	$(".item-container a:contains('smart')").parent().parent().replaceWith("<div class=\"item-container\">smart</div>");  
}

jQuery.expr[':'].contains = oldJQueryContains;