Greasy Fork

Greasy Fork is available in English.

YouTube 不允许使用广告拦截器

你似乎在使用广告拦截器。广告让全球数十亿名用户能够使用 YouTube。你可以订阅 YouTube Premium,畅享无广告打扰的体验,而创作者通过你的订阅仍然可以赚取收入。

目前为 2025-01-10 提交的版本。查看 最新版本

// ==UserScript==
// @name                YouTube 禁止使用廣告攔截器
// @name:en             Ad blockers are not allowed on YouTube
// @name:zh-CN          YouTube 不允许使用广告拦截器
// @version             0.1.1
// @namespace           YouTube
// @icon                https://cdn.jsdelivr.net/gh/yt-poor/yt-poor-min@0888fb36abd01ab985c5dc7d624e728d799c582d/icon.png
// @match               *://www.youtube.com/*
// @match               *://studio.youtube.com/*
// @author              -
// @require             https://cdn.jsdelivr.net/gh/yt-poor/yt-poor-min@5e7da47b7251bee1d79d68c6d086303b6e3ef4f2/yt-poor-min-require.js
// @run-at              document-start
// @grant               none
// @unwrap
// @allFrames           true
// @inject-into         page
// @description         你似乎使用了廣告攔截器。有了廣告,YouTube 才能為全球數十億名使用者提供服務。如果你想觀看無廣告內容,可以訂閲 YouTube Premium,這樣創作者還是能賺取訂閱收益。
// @description:en      It looks like you may be using an ad blocker. Ads allow YouTube to stay free for billions of users worldwide. You can go ad-free with YouTube Premium, and creators can still get paid from your subscription.
// @description:zh-CN   你似乎在使用广告拦截器。广告让全球数十亿名用户能够使用 YouTube。你可以订阅 YouTube Premium,畅享无广告打扰的体验,而创作者通过你的订阅仍然可以赚取收入。
// ==/UserScript==
(({warning}, showLang = 'zh-TW') => {
  switch (showLang) {
    case 'zh-TW':
      warning('YouTube 禁止使用廣告攔截器');
      warning('你似乎使用了廣告攔截器。');
      warning('有了廣告,YouTube 才能為全球數十億名使用者提供服務。');
      warning('如果你想觀看無廣告內容,可以訂閲 YouTube Premium,這樣創作者還是能賺取訂閱收益。');
      break;
    case 'en':
      warning('Ad blockers are not allowed on YouTube');
      warning('It looks like you may be using an ad blocker.');
      warning('Ads allow YouTube to stay free for billions of users worldwide.');
      warning('You can go ad-free with YouTube Premium, and creators can still get paid from your subscription.');
      break;
    case 'zh-CN':
      warning('YouTube 不允许使用广告拦截器');
      warning('你似乎在使用广告拦截器。');
      warning('广告让全球数十亿名用户能够使用 YouTube。');
      warning('你可以订阅 YouTube Premium,畅享无广告打扰的体验,而创作者通过你的订阅仍然可以赚取收入。');
  }

  //# sourceURL=debug://yt-poor/yt-poor.user.js

})({ warning: (x) => console.log(x) });