您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
让vagrant 的boxs的出现下载地址
// ==UserScript== // @name 获取vagrant 的boxs的下载地址 // @description 让vagrant 的boxs的出现下载地址 // @include https://atlas.hashicorp.com/*/boxes/* // @require http://cdn.bootcss.com/jquery/1.11.3/jquery.js // @grant ao // @version 0.0.1.20160102052826 // @namespace https://greasyfork.org/users/25818 // ==/UserScript== $(function(){ var e = $('.set-item>.row:first-child'), v = e.children('a:last-child'); //https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.4.0/providers/virtualbox.box v.each(function(i){ var t = $(this); t.before(t.clone().attr('href',function(t){ return this.href+'/providers/virtualbox.box'; }).html('下载virtualbox')); }); function addGlobalStyle(css) { var head, style; head = document.getElementsByTagName('head')[0]; if (!head) { return; } style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = css; head.appendChild(style); } console.log('完成'); })