您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the canvas!
// ==UserScript== // @name synapse x template // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the canvas! // @author jakey // @match https://hot-potato.reddit.com/embed* // @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com // @grant none // ==/UserScript== if (window.top !== window.self) { window.addEventListener('load', () => { document.getElementsByTagName("mona-lisa-embed")[0].shadowRoot.children[0].getElementsByTagName("mona-lisa-canvas")[0].shadowRoot.children[0].appendChild( (function () { const i = document.createElement("img"); i.src = "https://i.imgur.com/LkFAk9F.png"; i.onload = () => { if (i.width === i.height) { i.style = "position: absolute;left: 0;top: 0;image-rendering: pixelated;width: 1000px;height: 1000px;"; } else { i.style = "position: absolute;left: 0;top: 0;image-rendering: pixelated;width: 2000px;height: 1000px;"; } }; return i; })()) console.Log("synapse x overlay"); }, false); }