Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Stackoverflow 的 Ciro Santilli 你🐴死了
// ==UserScript==
// @name Stackoverflow 的 Ciro Santilli 你🐴死了
// @namespace Violentmonkey Scripts
// @match https://stackoverflow.com/*
// @grant none
// @version 1.0
// @author -
// @description 2021/11/8 上午11:09:57
// ==/UserScript==
[...document.querySelectorAll("span[itemprop='name']"), ...document.querySelectorAll("a[href^='/users/895245/']")]
.forEach(v => {
if (v.innerText.includes("Ciro Santilli")) {
v.innerText = "Ciro Santilli 我🐴死了"
} else {
v.innerHTML = "<p>我🐴的遗照</p>"
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment