Skip to content

Instantly share code, notes, and snippets.

@pjanczyk
Created February 22, 2018 14:27
Show Gist options
  • Save pjanczyk/2dfa02c5d5d5372c2cf04de328525763 to your computer and use it in GitHub Desktop.
Save pjanczyk/2dfa02c5d5d5372c2cf04de328525763 to your computer and use it in GitHub Desktop.
Skrypt do Tampermonkey
// ==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