您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Disable specific column in the table
// ==UserScript== // @name Disable haoetf Column // @namespace https://haoetf.com/ // @version 1.1 // @description Disable specific column in the table // @match https://www.haoetf.com/ // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Specify the index of the column to check for the value (starting at 0 for the first column) const columnToCheck = 1; // Specify an array of values to match in the specified column //const valuesToMatch = [164824]; const valuesToMatch = ["名称","印度基金", "华宝油气", "广发石油","国泰商品","美国消费","中国互联","南方原油","美国REIT","嘉实黄金"]; setTimeout(function() { // Find all the tables in the page const tables = document.getElementsByTagName('table'); // Loop through each table for (let i = 0; i < tables.length; i++) { const table = tables[i]; // Loop through the rows in the table for (let j = 0; j < table.rows.length; j++) { const row = table.rows[j]; // Check the value in the specified column const cell = row.cells[columnToCheck]; if (cell && valuesToMatch.includes(cell.innerText.trim())) { row.style.display = ''; } else { row.style.display = 'none'; } } } },500); })();