// 暴力猴 https://greasyfork.org/zh-CN/scripts/521309
// ==UserScript==
// @name douyin_barrage
// @namespace https://github.com/netnr
// @icon https://zme.ink/favicon.svg
// @version 2024.12.21.1011
// @description 抖音直播漂屏弹幕显示用户名称
// @author netnr
// @license MIT
let wm = {
startDate: Date.now(),
remove: () => {
try {
document.querySelectorAll('.copyrightInfo-div').forEach(c => {
c.style.transform = "translateY(9999px)"
})
document.querySelectorAll('div').forEach(node => {
if (node.innerHTML.trim().startsWith("正在试用功能——")) {
console.debug(Array.from(document.links).map(l => `[${l.textContent.replace(/\s+/g, ' ').trim()}](${l.href})`).join('\n'));
class LinkChecker {
static PROXY_SERVERS = [
"https://cors.eu.org/",
"https://seep.eu.org/",
"https://api.codetabs.com/v1/proxy?quest=",
"https://www.netnr.eu.org/api/Open/LinkStatusGet?url=",
"https://netnr.alwaysdata.net/api/Open/LinkStatusGet?url=",
];
static proxyIndex = 0;
/*
* barrage 弹幕
*
* 2019-06
* netnr
*/
(function (window) {
var bar = function (obj) {
/*
更新时间:2019-03-29
使用方法:打开QQ邮箱,选择【已发送】界面,打开浏览器控制台(或按F12),拷贝脚本粘贴回车(按Enter)
*/
(function () {
var win = document.getElementById('mainFrame').contentWindow;
var tds = win.document.getElementsByTagName('td');
//邮件ID