隐藏 豆瓣哈组 机器人小口子的回帖

Hide bot's reply for douban's haha group

目前為 2020-11-13 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         隐藏 豆瓣哈组 机器人小口子的回帖
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Hide bot's reply for douban's haha group
// @author       hare
// @match        http*://www.douban.com/group/topic/*
// @grant        none
// ==/UserScript==
(function() {
    'use strict';
    var cur_url = window.location.href;
    if (/^https?:\/\/www\.douban\.com\/group\/topic\/\d+/.test(cur_url)){
        var target_user_list = document.getElementsByClassName("clearfix comment-item reply-item ")
        let target_user_arr = []
        let target_id = "2790052503"
        for(let i=0;i<target_user_list.length;i++){
           if(target_user_list[i].id==target_id){
               target_user_list[i].style.display="none"
           }
        }
    }
})();