youtube 提示有中断问题,是我的问题吗

2 月 18 日
 rosebush373
3209 次点击
所在节点    YouTube
5 条回复
Kakarrot
2 月 18 日
我听歌会终端 chrome 浏览器播放的 我以为是版权问题
gigishy
2 月 19 日
谷歌问题。
rulagiti
4 月 15 日
去广告插件的问题,检测到使用去广告工具给恶意降速
xiaoxiannv
6 月 17 日
安装这款脚本可以解决
https://greasyfork.org/zh-CN/scr ... tions-popup-remover
YouTube“中断”弹出窗口移除器
xiaoxiannv
6 月 17 日
// ==UserScript==
// @name YouTube "Interruptions" Popup Remover
// @license MIT
// @version 1.5
// @namespace https://github.com/tukarsdev
// @description Automatically removes the "Experiencing interruptions?" popup on YouTube.
// @author tukars
// @icon https://www.youtube.com/favicon.ico
// @match https://www.youtube.com/*
// @require https://update.greasyfork.org/scripts/552301/1676024/Observe.js
// @run-at document-end
// @grant none
// @downloadURL https://update.greasyfork.org/scripts/552318/YouTube%20%22Interruptions%22%20Popup%20Remover.user.js
// @updateURL https://update.greasyfork.org/scripts/552318/YouTube%20%22Interruptions%22%20Popup%20Remover.meta.js
// ==/UserScript==

const { contextPrint, waitForElement, observeAndHandle } = window.userscript.com.tukars.Observe;

const ENABLE_DEBUG_LOGGING = true;

const { log, warn, error, info, debug } = contextPrint(
"YT Interruptions Remover", ENABLE_DEBUG_LOGGING
);

function destroyNotification(notification) {
if (!notification) {
error("Notification element does not exist! Cannot delete it!");
return;
}
if (!notification.parentNode) {
warn("Notification element already removed from the DOM.");
return;
}
debug("Destroying 'Interruptions' notification element.", notification);
notification.remove();
log("Successfully removed 'Interruptions' notification.");
}

async function handleInterruptionNotification(notification) {
debug("Detected a potential notification element:", notification);

const textElement = await waitForElement("#text", 2000, notification);

if (!textElement) {
debug("This notification does not have the expected text element. Ignoring.");
return;
}

debug(`Got text element. Text is: "${textElement.textContent}"`)

const textContent = textElement.textContent.trim();

if (textContent.includes("Experiencing interruptions?")) {
log("Found 'Experiencing interruptions?' notification. Removing it.");
destroyNotification(notification);
} else {
debug(`Notification text did not match. Text was: "${textContent}"`);
setTimeout(() => { debug(`Text after 300ms: "${textElement.textContent}"`) }, 300);
}
}

(async function () {
"use strict";
log("Interruptions remover is active.");

const popupContainer = await waitForElement("ytd-popup-container.style-scope.ytd-app");

observeAndHandle(popupContainer, "tp-yt-paper-toast", handleInterruptionNotification);
})();

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1193154

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX