Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name TagPro Wins Until Next Degree
- // @namespace http://www.reddit.com/user/tpcarl/
- // @description Displays wins needed until next degree on score screen.
- // @include http://tagpro-*.koalabeast.com*
- // @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
- // @author ben, modified by ballparts
- // @version .1
- // ==/UserScript==
- $('article > div.section.smaller').after( "<center><h3><div><p id='winsneeded'></p></div></h3></center>" );
- url = $('a[href^="/profile"]').attr('href');
- if(url !== undefined) {
- var n = url.lastIndexOf('/');
- var profileNum = url.substring(n + 1);
- profilePage = String('/profile/'+profileNum);
- localStorage.setItem('profilePage',profilePage);
- }
- if(document.URL.search('profile')<1) {
- $( "#winsneeded" ).load(localStorage.getItem('profilePage') + ' article > h3 > div', function(){
- $('#winsneeded > div:last-child').css({'font-size':'50%'});
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement