Greasy Fork is available in English.

B站扣1复活科比

自动将B站评论修改为扣1复活科比

// ==UserScript==
// @name         B站扣1复活科比
// @namespace    undefined
// @version      0.2
// @description  自动将B站评论修改为扣1复活科比
// @author       imtsy
// @match        *://*.bilibili.com/*
// @license MIT
// ==/UserScript==
(function() {
setInterval(() => {
    let divList = document.querySelectorAll('div.root-reply');
    for(let div of divList) {
      let spanList = div.querySelectorAll('span.reply-content-container.root-reply');
      for(let span of spanList) {
          let commentList = span.querySelectorAll('span.reply-content');
          for(let comment of commentList) {
              comment.textContent = "扣 1 复活科比";
          }
      }
  }
  let subSpanList = document.querySelectorAll('span.reply-content-container.sub-reply-content');
    for(let subSpan of subSpanList) {
          let subCommentList = subSpan.querySelectorAll('span.reply-content');
          for(let subComment of subCommentList) {
              subComment.textContent = "111";
          }
      }
  let imgList = document.querySelectorAll('img.bili-avatar-img.bili-avatar-face.bili-avatar-img-radius');
    for(let img of imgList) {
        img.src = "//i2.hdslb.com/bfs/face/3674221c582cf849f11535052ca2b5d11a650bba.jpg@160w_160h_1c_1s_!web-avatar-comment.webp";
    }
}, 1000);

})();