TAPD迭代列表仅显示自己

TAPD hidden others

目前为 2018-12-24 提交的版本。查看 最新版本

// ==UserScript==
// @name         TAPD迭代列表仅显示自己
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  TAPD hidden others
// @author       ficapy
// @match        https://www.tapd.cn/*/prong/iterations/view/*
// @run-at       document-end
// @grant        none
// ==/UserScript==


function switch_hidden_other() {
    let all_tr = $('#stories_tasks_content tr')
    var td_val
    all_tr.each(function () {
        td_val = $('#' + this.id + 'owner').attr('data-editable-value')
        if (typeof td_val === "undefined"){
            return
        }else{
            if (td_val.indexOf(user_nick) === -1) {
                $('#hidden_other').attr("checked") ? $(this).hide() : $(this).show()
            }
        }
    })
}


(function () {
    'use strict';
    var t = setTimeout(function () {
        $('#show_task_b').parent().append('<label class="checkbox"><input type="checkbox" id="hidden_other" checked>仅自己</label>')
        switch_hidden_other()
        $("#hidden_other").click (switch_hidden_other);
    }, 1000)
    })()

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址