Advertisement
flipybitz

Osu! Highlight Recent Plays

Dec 25th, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Osu! Highlight Recent Plays
  3. // @description  Here ya go dungeonfire you nazi <3
  4. // @author       Flipybitz
  5. // @version      1
  6. // @match        https://osu.ppy.sh/u/*
  7. // @require      http://code.jquery.com/jquery-latest.min.js
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. var daysAgo = 14;//days count here
  12. var css = "background:rgba(255,255,255,.2)!important";
  13.  
  14. var j = jQuery.noConflict();
  15. if(j(".stylish").length > 0){j(".stylish").text(j(".stylish").text()+'.Z{'+css+'}');}
  16. else{j('head').append(j.parseHTML('<style>.Z{'+css+'}</style>'));}
  17. j('#leader').on('DOMNodeInserted', '.prof-beatmap', function () {
  18.     if((new Date(j(this).find(".timeago").attr("datetime"))).getTime()>=((new Date()).getTime()-(86400000*daysAgo))){j(this).addClass("Z");}
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement