Created
August 18, 2020 21:28
-
-
Save fuzzysteve/1e70aa2b4cbdbf1b70c21932dd829550 to your computer and use it in GitHub Desktop.
add / to all zkill links. change the url
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://zkillboard.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
var a_col = document.getElementsByTagName('a'); | |
var a, url; | |
for(var i = 0; i < a_col.length; i++) { | |
a = a_col[i]; | |
url = a.href; | |
if(url.includes("https://zkillboard.com/") & !url.endsWith("/")) a.href=url+"/"; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment