Randomly find wikipedia pages
This commit is contained in:
parent
f470b03038
commit
e4244d78c4
|
@ -0,0 +1,20 @@
|
|||
// ==UserScript==
|
||||
// @name Randompedia
|
||||
// @namespace https://spookyinternet.com/
|
||||
// @version 2024-05-03
|
||||
// @description Random wikipedia pages in 1-click.
|
||||
// @author Nick Chambers
|
||||
// @match https://*.wikipedia.org/wiki/*
|
||||
// @icon https://www.google.com/s2/favicons?sz=64&domain=wikipedia.org
|
||||
// ==/UserScript==
|
||||
|
||||
(function() {
|
||||
"use strict";
|
||||
|
||||
const button = document.createElement("a");
|
||||
button.innerText = "Random Page!";
|
||||
button.href = "https://en.wikipedia.org/wiki/Special:Random";
|
||||
|
||||
const search = document.getElementById("p-search");
|
||||
search.parentNode.insertBefore(button, search.nextSibling);
|
||||
})();
|
Loading…
Reference in New Issue