Last active
December 25, 2015 05:09
-
-
Save wolfiestyle/6922375 to your computer and use it in GitHub Desktop.
adds a lolking link to user names
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 LoL forums lolking links | |
| // @namespace http://fluffy.pw/ | |
| // @description adds a lolking link to user names | |
| // @include http://forums.*.leagueoflegends.com/board/showthread.php?* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| $("p.post-user").wrap(function() { | |
| var user = $(this).text(); | |
| var url = "http://www.lolking.net/search?name=" + encodeURIComponent(user); | |
| return $("<a />").attr("href", url).attr("style", "text-decoration: none; color: #2B2B2B"); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment