Advertisement
M4rc3lv

canvas.user.js

Aug 28th, 2014
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Canvas
  3. // @namespace   nl.m4rc3lv.canvas
  4. // @description Canvas UI voor laptop en beamer
  5. // @include     https://fhict.instructure.com/*
  6. // @require         http://www.m4rc3lv.nl/jquery-1.6.4.min.js
  7. // @resource hacked http://www.m4rc3lv.nl/pix/hacked.gif
  8. // @version     1
  9. // @grant none
  10. // ==/UserScript==
  11. var bToggle=true;
  12.  
  13. $(function(){
  14.  $("#identity-help-container").after("<input title='Toggle side-bar' type=button value='&#9760;' id='MVToggle' />");
  15.   $('#MVToggle').click(function(){
  16.    if(bToggle)
  17.     $("#main").css("margin-right","50px");
  18.    else
  19.     $("#main").css("margin-right","286px");
  20.    bToggle = !bToggle;
  21.   });
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement