Skip to content

Instantly share code, notes, and snippets.

@MitMaro
Created March 29, 2016 19:33
Show Gist options
  • Select an option

  • Save MitMaro/cc1c1afc4b902bc56cdb327ba14d1eee to your computer and use it in GitHub Desktop.

Select an option

Save MitMaro/cc1c1afc4b902bc56cdb327ba14d1eee to your computer and use it in GitHub Desktop.
Tampermonkey script for BB diff to change the tab size.
// ==UserScript==
// @name BitBucket tab size
// @namespace http://mitmaro.ca
// @version 1.0.0
// @description Converts the diff tab size on BB
// @author Tim Oram
// @match https://bitbucket.org/*/*/pull-requests/*/diff
// @grant none
// ==/UserScript==
(function() {
'use strict';
var sheet = document.createElement('style');
sheet.innerHTML = "pre {tab-size: 4;}";
document.body.appendChild(sheet);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment