open search results in new tab.
Version au
// ==UserScript==
// @name Github search open in new tab
// @namespace bethropolis.github
// @include https://github.com/search?*
// @version 0.1
// @grant GM_xmlhttpRequest
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_deleteValue
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
// @description open search results in new tab.
// ==/UserScript==
(function() {
'use strict';
var a = document.querySelectorAll(".repo-list")
a.forEach(function(ca){
ca.querySelector('a').setAttribute('target','_blank')
})
// Your code here...
})();