您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes the KnowYourMeme redesign
// ==UserScript== // @name Return to old KYM (KnowYourMeme) design // @namespace https://greasyfork.org/en/users/1436613-gosha305 // @match https://knowyourmeme.com/* // @version 1.2 // @author gosha305 // @license MIT // @description Removes the KnowYourMeme redesign // ==/UserScript== if (!document.cookie.includes("old_design=true")){ document.cookie = "old_design=true; path=/; domain=.knowyourmeme.com; expires=Fri, 31 Dec 9999 23:59:59 GMT"; location.reload(); } //fix for main page feed images covering other elements const imageFix = document.createElement("style"); imageFix.innerHTML = ".newsfeed_photo { width: 100%;}"; document.head.appendChild(imageFix); //fix for NSFW image pages showing a buggy version of the NSFW warning cover instead of the actual image const img = document.querySelector(".centered_photo.nsfw-img"); if (img){ img.setAttribute("src",img.parentElement.parentElement.href); }