Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name TESU Width Fix
- // @namespace http://tampermonkey.net/
- // @version 0.2
- // @description try to take over the world!
- // @author Alzee
- // @match https://my.tesu.edu/student/Pages/WebAdvisor.aspx*
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
- // @require https://gist.github.com/raw/2625891/waitForKeyElements.js
- // @grant none
- // ==/UserScript==
- function fixWidth(x)
- {
- $('div#CustParagraph ol').remove();
- $('*').each(function(){
- if ($(this).css('margin'))
- {
- $(this).css('margin', '0');
- }
- if ($(this).css('margin-left'))
- {
- $(this).css('margin-left', '0');
- }
- });
- }
- function fixUnderlines(x)
- {
- if (x.text().match(/^_+$/))
- {
- x.text('');
- }
- }
- $(document).ready(function() {
- fixWidth(null);
- waitForKeyElements('div', fixWidth);
- waitForKeyElements('td', fixUnderlines);
- });
Add Comment
Please, Sign In to add comment