// ==UserScript== // @name Bitbucket - Add Additional Issue Filters // @namespace http://davefive.org/ // @version 1.4 // @description Adds 'My Open' issue filter and configurable additional dropdown issue filter categories // @author davfive // @match https://bitbucket.org/*/*/issues* // @grant none // @downloadURL none // ==/UserScript== // // Note that if you want to have this run on one specific repository, then change // the match's */* to acount/repository. I have per repository ones because I // use the filter (as you can see below) to create pseudo categories (like I have // in the full JIRA) that allow me to group my filters nicely. // // 1.4 - Updated NextRelease to Status Dashboard // 1.3 - Fix script not showing up on issues page with no search (no trailing ?) // 1.2 - Fix All Catagories and No Categories searches to be correct // 1.1 - Abstracted out new_filters dropdown to simplify creation // - Added ability to put separators by appending -^ (before) or -v (after) to name // 1.0 - Initial Release // - Added My Open filter // - Added Filter dropdowns //--------------------------------------------------------------------------------------- // Search string ends in: '-^' (above); '-v' (below) function create_filter(id, name, url, separator) { separator = 'none'; if (/-\^$/.test(name)) { separator = 'above'; } else if (/-v$/.test(name)) { separator = 'below'; } if (separator !== 'none') { name = name.slice(0, -2); } lis = ''; if (separator === 'above') { lis += '