Skip to content

Instantly share code, notes, and snippets.

@marcelotmelo
Created August 11, 2015 13:40
Show Gist options
  • Save marcelotmelo/9420c1fd82f1efa7965c to your computer and use it in GitHub Desktop.
Save marcelotmelo/9420c1fd82f1efa7965c to your computer and use it in GitHub Desktop.
// ==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