Last active
August 29, 2015 14:18
-
-
Save marek-saji/66d03e38e72b609759a0 to your computer and use it in GitHub Desktop.
Userscript for waffle.io that opens GitHub issues instead of waffle cards. Tested only of TamperMonkey <https://tampermonkey.net/>.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name waffle.io -- open issues instead of cards | |
// @namespace https://twitter.com/saji_ | |
// @version 1.0 | |
// @description as name promises | |
// @match https://waffle.io/* | |
// @copyright 2015+, Marek ‘saji’ Augustynowicz | |
// ==/UserScript== | |
$(document).on('click', '.card-number', function (event) { | |
window.open( | |
$(event.target).closest('[data-waffle-url]').data('waffle-url').replace(/api\.|\/repos/g, ''), | |
'_blank' | |
); | |
// Does not work ☹ | |
event.preventDefault(); | |
event.stopPropagation(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Moved to https://openuserjs.org/scripts/saji/waffle.io_--_open_issues_instead_of_cards