User:AzraelUK
From GMod Wiki
AzraelUK is a noob. But that won't stop him.
// ==UserScript== // @name Garry's Wiki Fix Stuff // @namespace blah // @description Fixes stuff // @include http://www.garrysmod.com/wiki/*action=edit* // @include http://garrysmod.com/wiki/*action=edit* // @include http://www.garrysmod.com/wiki/*action=submit* // @include http://garrysmod.com/wiki/*action=submit* // ==/UserScript== textbox = document.getElementById("wpTextbox1") textbox.innerHTML = textbox.innerHTML.replace(/\[\[(Image:)?Client(\d?\.png)?(|[^\]]+)?\]\]/gi, "{{Client}}"); textbox.innerHTML = textbox.innerHTML.replace(/\[\[(Image:)?Server(\d?\.png)?(|[^\]]+)?\]\]/gi, "{{Serverside}}"); textbox.innerHTML = textbox.innerHTML.replace(/\[\[(Image:)?Shared(\d?\.png)?(|[^\]]+)?\]\]/gi, "{{Shared}}"); textbox.innerHTML = textbox.innerHTML.replace(/\[\[(Image:)?Missing(\d?\.png)?(|[^\]]+)?\]\]/gi, "{{Missing}}"); checkbox = document.getElementById("wpMinoredit") checkbox.checked = true style = " \ div.content { width: 1280px; } \ .content_inner, #wiki-inner { width: 1240px; } \ textarea { font-family: Triskweline, monospace; }" GM_addStyle(style)