// ==UserScript== // @name Script for Roblox Status // @namespace http://tampermonkey.net/ // @version 0.1.1 // @description Use this with my userstyle: https://userstyles.world/api/style/4519.user.css // @author cocngk // @match http://status.roblox.com/* // @require http://code.jquery.com/jquery-3.4.1.min.js // @icon https://www.google.com/s2/favicons?sz=64&domain=roblox.com // @license MIT // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; // Sticky bar $(window).scroll(function(e){ var $el = $('#statusio_status_bar'); var isPositionFixed = ($el.css('position') == 'fixed'); if ($(this).scrollTop() > 200 && !isPositionFixed){ $el.css({'position': 'fixed', 'top': '0px'}); } if ($(this).scrollTop() < 200 && isPositionFixed){ $el.css({'position': 'static', 'top': '0px'}); } $('.panel').mouseenter(function(){ $('.panel').css('filter','blur(5px)'); // Blurs each .panel div $(this).css('filter','blur(0px)'); // Removes blur from the currently hovered .panel div }); $('.panel').mouseleave(function(){ $('.panel').css('filter','blur(0px)'); // Removes blur from all when none are hovered }); }); })();