Created
February 22, 2018 14:27
-
-
Save pjanczyk/2dfa02c5d5d5372c2cf04de328525763 to your computer and use it in GitHub Desktop.
Skrypt do Tampermonkey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Enroll Highlighter | |
// @version 0.1 | |
// @author Piotr Janczyk | |
// @match https://enroll-me-2.iiet.pl/* | |
// @require http://code.jquery.com/jquery-1.12.4.min.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
setTimeout(function() { | |
$('.lecture').css('background-color', 'black'); | |
$('.event').each(function () { | |
let value = parseInt($(this).find('.points .value').text().split(" ")[0]); | |
if (value !== 0) | |
$(this).css('border', value + 'px solid black'); | |
}); | |
}, 2000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment