NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name trello-emilien-puget // @namespace trello-emilien-puget // @include https://trello.com/* // @include https://*.trello.com/* // @version 1 // @grant GM_addStyle // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js // @oujs:author emilien-puget // ==/UserScript== GM_addStyle ( " \ .card-short-id { \ display: inline !important; \ padding: 5px; \ } \ " ); $(function () { $('#content').bind('mousewheel DOMMouseScroll', function (event) { if ($(event.target).parents('.list').length === 0) { var $board = $('#board'); if (event.originalEvent.wheelDelta > 0 || event.originalEvent.detail < 0) { var next = $board.scrollLeft() - 280; if ($board.scrollLeft() % 280 !== 0) { next = Math.round($board.scrollLeft() / 280) * 280; } $board.scrollLeft(next); } else { $board.scrollLeft($board.scrollLeft() + 280); } } }); });