Skip to content

Instantly share code, notes, and snippets.

@cirosantilli
Forked from chenx6/dead_horse.js
Created November 10, 2021 08:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cirosantilli/927c519850def3dc7c0ac2c956c82333 to your computer and use it in GitHub Desktop.
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