Counteron / Default

// ==UserScript==
// @name         Default
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://secretaria.porto.ucp.pt/e-SCA/Esca.aspx?Template=0&Area=UtilInst&Opcao=AluNotas
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    function divchange() {
    document.getElementById("myform").innerHTML = '<form id="myform" method="post" style="padding: 0px; margin: 0px;"><table cellspacing="0" cellpadding="3" rules="all" border="1" id="_ctl1_TDados" style="width:100%;border-collapse:collapse;"><tbody><tr class="theader"><th align="center" scope="col" style="width:80px;">Ano Lectivo</th><th align="center" scope="col">Periodo</th><th scope="col">Código</th><th scope="col">Disciplina</th><th scope="col">Nota</th><th scope="col">Classificação</th><th scope="col">Tipo</th><th scope="col">ECTS</th><th scope="col">Ciclo</th></tr><tr><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141000</a></td><td><a target="_blank">MICROECONOMIA</a></td><td align="center" style="width:35px;">11</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr class="talternate"><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141000</a></td><td><a target="_blank">MICROECONOMIA</a></td><td align="center" style="width:35px;">14</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Época Recurso</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141001</a></td><td><a target="_blank">MATEMÁTICA I</a></td><td align="center" style="width:35px;">12</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr class="talternate"><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141005</a></td><td><a target="_blank">INTRODUÇÃO AO ESTUDO DA EMPRESA</a></td><td align="center" style="width:35px;">16</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141015</a></td><td><a target="_blank">SOCIOLOGIA ECONÓMICA</a></td><td align="center" style="width:35px;">&nbsp;</td><td style="width:100px;">Reprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr class="talternate"><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141015</a></td><td><a target="_blank">SOCIOLOGIA ECONÓMICA</a></td><td align="center" style="width:35px;">15</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Época Recurso</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141066</a></td><td><a target="_blank">TESTE DIAGNÓSTICO - INGLÊS</a></td><td align="center" style="width:35px;">&nbsp;</td><td style="width:100px;">Faltou</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">0</td><td align="center" style="width:40px;">1º</td></tr><tr class="talternate"><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141072</a></td><td><a target="_blank">SISTEMAS DE INFORMAÇÃO E TECNOLÓGICOS</a></td><td align="center" style="width:35px;">14</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">2º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141071</a></td><td><a target="_blank">FILOSOFIA SOCIAL E ÉTICA</a></td><td align="center" style="width:35px;">15</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr class="talternate"><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">2º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141009</a></td><td><a target="_blank">CONTABILIDADE FINANCEIRA</a></td><td align="center" style="width:35px;">17</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">2º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141010</a></td><td><a target="_blank">PROJECTO MULTIDISCIPLINAR I</a></td><td align="center" style="width:35px;">15</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr class="talternate"><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">2º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141002</a></td><td><a target="_blank">MACROECONOMIA</a></td><td align="center" style="width:35px;">15</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">2º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141001</a></td><td><a target="_blank">MATEMÁTICA I</a></td><td align="center" style="width:35px;">16</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Época Recurso</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr class="talternate"><td align="center">2015/2016</td><td nowrap="nowrap" style="width:90px;">2º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141003</a></td><td><a target="_blank">MATEMÁTICA II</a></td><td align="center" style="width:35px;">14</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr><td align="center">2016/2017</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141004</a></td><td><a target="_blank">ESTATÍSTICA</a></td><td align="center" style="width:35px;">16</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr class="talternate"><td align="center">2016/2017</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141011</a></td><td class="talternate"><a target="_blank">COMPLEMENTOS DE CONTABILIDADE FINANCEIRA</a></td><td align="center" style="width:35px;">13</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr><td align="center">2016/2017</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141011</a></td><td><a target="_blank">COMPLEMENTOS DE CONTABILIDADE FINANCEIRA</a></td><td align="center" style="width:35px;">14</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Época Recurso</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr class="talternate"><td align="center">2016/2017</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141012</a></td><td><a target="_blank">MOEDA E MERCADOS FINANCEIROS</a></td><td align="center" style="width:35px;">15</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr><td align="center">2016/2017</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141065</a></td><td><a target="_blank">TESTE DIAGNÓSTICO - PROCESSAMENTO DE TEXTO</a></td><td align="center" style="width:35px;">&nbsp;</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">0</td><td align="center" style="width:40px;">1º</td></tr><tr class="talternate"><td align="center">2016/2017</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141066</a></td><td><a target="_blank">TESTE DIAGNÓSTICO - INGLÊS</a></td><td align="center" style="width:35px;">&nbsp;</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">0</td><td align="center" style="width:40px;">1º</td></tr><tr><td align="center">2016/2017</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141024</a></td><td><a target="_blank">ECONOMIA DA EMPRESA</a></td><td align="center" style="width:35px;">16</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr><tr class="talternate"><td align="center">2016/2017</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141051</a></td><td><a target="_blank">INGLÊS (Ec)</a></td><td align="center" style="width:35px;">&nbsp;</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">&nbsp;</td><td align="center" style="width:40px;">1º</td></tr><tr><td align="center">2016/2017</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141057</a></td><td><a target="_blank">PROCESSAMENTO DE TEXTO (Ec)</a></td><td align="center" style="width:35px;">&nbsp;</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">&nbsp;</td><td align="center" style="width:40px;">1º</td></tr><tr class="talternate"><td align="center">2016/2017</td><td nowrap="nowrap" style="width:90px;">1º Semestre</td><td align="right" style="width:60px;"><a target="_self">6141062</a></td><td><a target="_blank">PROJECTO MULTIDISCIPLINAR II</a></td><td align="center" style="width:35px;">14</td><td style="width:100px;">Aprovado</td><td nowrap="nowrap" style="width:100px;">Normal</td><td align="center" style="width:40px;">6</td><td align="center" style="width:40px;">1º</td></tr></tbody></table></form>';
    document.getElementById("_ctl1_MediaLabel").innerHTML = '15.07';
    }
  window.addEventListener("pageshow", divchange, true);

})();