Advertisement
S0lll0s

Zerorobotics Simulation Scroll Fix

Sep 17th, 2014
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name       Zerorobotics scroll fix
  3. // @namespace  http://use.i.E.your.homepage/
  4. // @version    0.1
  5. // @description  enter something useful
  6. // @match      http://zerorobotics.mit.edu/ide/simulation/*
  7. // @copyright  2014+, S0lll0s
  8. // ==/UserScript==
  9.  
  10. function addNewStyle(newStyle) {
  11.     var styleElement = document.getElementById('styles_js');
  12.     if (!styleElement) {
  13.         styleElement = document.createElement('style');
  14.         styleElement.type = 'text/css';
  15.         styleElement.id = 'styles_js';
  16.         document.getElementsByTagName('head')[0].appendChild(styleElement);
  17.     }
  18.     styleElement.appendChild(document.createTextNode(newStyle));
  19. }
  20.  
  21. addNewStyle('body {overflow: scroll !important;}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement