您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove whitespace in Github pull requests and compares
// ==UserScript== // @name GithubWhitespace // @description Remove whitespace in Github pull requests and compares // @version 0.1 // @namespace https://github.dev.xero.com // @include https://github.dev.xero.com/* // @grant none // @require http://code.jquery.com/jquery-latest.js // ==/UserScript== $(document).ready(function() { var w = window.location; if (w.toString().indexOf('?w=') < 0 && (w.toString().indexOf('/pull/') >= 0 || w.toString().indexOf('compare') >= 0)) { window.location = w.protocol + '//' + w.hostname + w.pathname + '?w=0'; } });