-
Notifications
You must be signed in to change notification settings - Fork 3
/
general_siscad_tweak.user.js
39 lines (36 loc) · 1.58 KB
/
general_siscad_tweak.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// ==UserScript==
// @name SiscadGeneral
// @author andvicoso
// @namespace andvicoso_siscad_tweak
// @description Siscad initial auto-login
// @version 1.13
// @icon https://siscad-admin.ufms.br/favicon.ico
// @downloadURL https://github.com/andvicoso/siscad_tweak/raw/master/general_siscad_tweak.user.js
// @include https://siscad-admin.ufms.br/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js
// @require https://raw.githubusercontent.com/andvicoso/siscad_tweak/master/siscad_tweak_utils.js
// @grant GM_addStyle
// ==/UserScript==
/* globals $ */
/* globals jQuery */
this.$ = this.jQuery = jQuery.noConflict(true);
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
//waitForKeyElements ("#formLogin", actionFunction);
setTimeout(actionFunction, 500);
function actionFunction () {
//select first option in selection box
$('select').each(function (index) {
if($(this).find("option:contains('elecione')").parent().length == 1 || $(this).find("option:contains('scolha')").parent().length == 1){
$(this).find('option:nth(1)').attr("selected", "selected");
}
});
//increase the font-size of common table headers
$(".listHeader td").css('font-size','large');
$('a[style*="color: #00A000; font-weight: bold"]').css({
"background-color":" #EEEEEE",
"padding":" 2px 6px 2px 6px",
"border-top":" 1px solid #CCCCCC",
"border-right":" 1px solid #333333",
"border-bottom":" 1px solid #333333",
"border-left":" 1px solid #CCCCCC"});
}