Greasy Fork

来自缓存

Greasy Fork is available in English.

基金推荐

基金推荐!

当前为 2021-08-01 提交的版本,查看 最新版本

// ==UserScript==
// @name         基金推荐
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  基金推荐!
// @include     https://fund.eastmoney.com/data/fundranking.html*
// ==/UserScript==

(function () {
    'use strict';
  
    // Your code here...
    let $ = jQuery;
    $("#dbtable > tbody > tr").each(function () {
        let tax = parseFloat($(this).find("td").eq(18).text());
        let week = parseFloat($(this).find("td").eq(8).text());
        let month = parseFloat($(this).find("td").eq(9).text());
        if (!tax && week / 7 >= 1 && month / 30 >= 1) {
            $(this).append("<td style='font-weight:bold;background-color:#00fa'>买啊</td>");
            $(this).find("td").css("background-color", "#0f09");
        }
    });
})();