NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Scholar Google to Portal Capes // @namespace ferreira.mendonca.ricardo // @homepageURL https://openuserjs.org/scripts/Ricardo/Scholar_Google_to_Portal_Capes // @version 0.1 // @description Add a link to Portal Capes from Scholar Google // @author Ricardo Mendonça Ferreira // @match http://scholar.google.co.uk/* // @match http://scholar.google.com/* // @match http://scholar.google.com.br/* // @grant none // ==/UserScript== // // 0.1 - 2014/12/19 - First tests (function () { gs_rt = document.getElementsByClassName("gs_rt"); for (var j=0; j < gs_rt.length; j++) { var elm = gs_rt[j]; var esc = escape(elm.textContent); var url = "http://www.periodicos.capes.gov.br/?option=com_pmetabusca&mn=88&smn=88&type=m&metalib=aHR0cDovL21scGx1cy5ob3N0ZWQuZXhsaWJyaXNncm91cC5jb20vcHJpbW9fbGlicmFyeS9saWJ3ZWIvYWN0aW9uL3NlYXJjaC5kbz9kc2NudD0wJmZyYmc9JnNjcC5zY3BzPXByaW1vX2NlbnRyYWxfbXVsdGlwbGVfZmUmdGFiPWRlZmF1bHRfdGFiJmN0PXNlYXJjaCZtb2RlPUJhc2ljJmR1bT10cnVlJmluZHg9MSZmbj1zZWFyY2gmdmlkPUNBUEVT&buscaRapidaTermo="+esc; var href = document.createElement("a"); var text = document.createTextNode(" - [P.Capes]"); href.setAttribute('href', url); href.appendChild(text); elm.appendChild(href); } })();