Skip to content

Instantly share code, notes, and snippets.

@fuzzysteve
Created August 18, 2020 21:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fuzzysteve/1e70aa2b4cbdbf1b70c21932dd829550 to your computer and use it in GitHub Desktop.
Save fuzzysteve/1e70aa2b4cbdbf1b70c21932dd829550 to your computer and use it in GitHub Desktop.
add / to all zkill links. change the url
// ==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