您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
github 新标签页打开
当前为
// ==UserScript== // @name 新标签打开 // @namespace http://tampermonkey.net/ // @version 0.3 // @description github 新标签页打开 // @author [email protected] // @match http*://*.github.com/* // @match http*://packagist.org/* // @require https://code.jquery.com/jquery-latest.js // @grant none // ==/UserScript== (function() { 'use strict'; $(function(){ switch(window.location.host) { case "packagist.org": setInterval(function(){ $(".package-item h4>a").attr("target", "_blank"); }, 1000); break; default: $(".repo-list h3>a").attr("target", "_blank"); break; } }); })();