Skip to content

Instantly share code, notes, and snippets.

@shanehh
Created March 20, 2021 04:09
Show Gist options
  • Save shanehh/4f24d9d6d7dc38c5f03760348905e6cb to your computer and use it in GitHub Desktop.
Save shanehh/4f24d9d6d7dc38c5f03760348905e6cb to your computer and use it in GitHub Desktop.
hide wiki referer number to make copy easier
// ==UserScript==
// @name HideWikiRefer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Huu
// @match https://*.wikipedia.org/wiki/*
// @match https://*.wikipedia.org/zh*/*
// @grant none
// @run-at document-end
// ==/UserScript==
(function() {
const referencesElements = document.querySelectorAll('.reference')
for (const e of referencesElements) {
e.remove()
}
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment