Skip to content

Instantly share code, notes, and snippets.

@cr4m3r
Last active August 8, 2016 02:31
Show Gist options
  • Save cr4m3r/9c26577161b397bfbd092e9396a54cce to your computer and use it in GitHub Desktop.
Save cr4m3r/9c26577161b397bfbd092e9396a54cce to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Sticky MTG ModBar
// @version 1.0
// @description make the #moderatorBar sticky
// @author slothbear
// @icon http://i.imgur.com/yptTSAh.gif
// @match http://www.mturkgrind.com/threads/*
// @require https://code.jquery.com/jquery-2.1.4.min.js
// @require https://raw.githubusercontent.com/garand/sticky/master/jquery.sticky.js
// ==/UserScript==
$(document).ready(function(){
$('#moderatorBar').sticky({topSpacing:0, zIndex:666}); // uses sticky.js to keep the moderatorBar on top
$('#moderatorBar').css({opacity: 0.33, right: 0}); // makes bar see through
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment