您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces the YouTube 404 page monkey with a better one made by @dinoboirex1.
- // ==UserScript==
- // @run-at document-idle
- // @version 1.0.0
- // @name YouTube 404 page monkey replacer
- // @namespace https://github.com/emmaexe/userscripts
- // @author emmaexe
- // @description Replaces the YouTube 404 page monkey with a better one made by @dinoboirex1.
- // @license GPL-3.0-only
- // @homepageURL https://github.com/emmaexe/userscripts
- // @supportURL https://github.com/emmaexe/userscripts/issues
- // @include *://youtube.*/*
- // @include *://*.youtube.*/*
- // @icon https://raw.githubusercontent.com/emmaexe/userscripts/main/youtube-404-replacer/assets/youtube-ico-32.png
- // @grant none
- // ==/UserScript==
- youtube_monke_parent = document.getElementsByClassName('not-found-content')[0];
- youtube_monke = document.getElementsByClassName('not-found-content__image')[0];
- if (youtube_monke === undefined) youtube_monke = document.getElementById('error-page-hh-illustration');
- if (youtube_monke != undefined) {
- youtube_monke.src = "https://raw.githubusercontent.com/emmaexe/userscripts/main/youtube-404-replacer/assets/youtube-monkey.png";
- youtube_monke.width = 186;
- youtube_monke.height = 186;
- let newAnchor = document.createElement("a");
- newAnchor.innerText = "\nArt by @dinoboirex1";
- newAnchor.href = "https://www.reddit.com/user/DinoRex_Makes_2/";
- newAnchor.target = "_blank";
- youtube_monke_parent.insertBefore(newAnchor, youtube_monke_parent.children[1]);
- }