Created
August 11, 2015 13:40
-
-
Save marcelotmelo/9420c1fd82f1efa7965c to your computer and use it in GitHub Desktop.
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== | |
// @version 0.2.7 | |
// @name CA - Atualizar Quadro | |
// @namespace http://www.mec.gov.br/ | |
// @author marcelotmelo (https://github.com/marcelotmelo) | |
// @updateURL https://github.com/marcelotmelo/tampermonkey/raw/master/ca-atualizar-quadro.user.js | |
// @description Atualiza o quadro de solicitacoes do CA | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js | |
// @include http://operacoesti.mec.gov.br*/CAisd/pdmweb.exe?SID=*+FID=*+OP=SEARCH+FACTORY=cr+KEEP.where_clause=* | |
// @match http://operacoesti.mec.gov.br*/CAisd/pdmweb.exe?SID=*+FID=*+OP=SEARCH+FACTORY=cr+KEEP.where_clause=* | |
// @grant GM_addStyle | |
// @grant GM_getResourceText | |
// @copyright 2015+, You | |
// ==/UserScript== | |
//Avoid conflicts | |
this.$ = this.jQuery = jQuery.noConflict(true); | |
function refreshBugPage() { | |
document.location.reload(); | |
} | |
var refreshButton = document.createElement("input"); | |
refreshButton.type = "button"; | |
refreshButton.value = "Atualizar"; | |
refreshButton.onclick = refreshBugPage; | |
$(document).ready( | |
function() { | |
$('#dataGrid_toppager_right').before($('<td>').append($(refreshButton)).append($('</td>'))); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment