Skip to content

Instantly share code, notes, and snippets.

@marek-saji
Last active August 29, 2015 14:18
Show Gist options
  • Save marek-saji/66d03e38e72b609759a0 to your computer and use it in GitHub Desktop.
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/>.
// ==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();
});
@marek-saji
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment