Difference between revisions of "Bookmarklets"
Jump to navigation
Jump to search
(Created page with "A bookmarklet to view Phab tickets in a force-directed graph <pre><a href="javascript:(function(){javascript: (function() {var t = window.getSelection ? window.getSelection()...") |
(No difference)
|
Revision as of 14:00, 27 September 2017
A bookmarklet to view Phab tickets in a force-directed graph
<a href="javascript:(function(){javascript: (function() {var t = window.getSelection ? window.getSelection().toString() : document.selection.createRange().text;var re = /[\s\-T0-9]{1,6}/;var OK = re.exec(t);if (!OK) {alert(t + ' is not a valid Phab issue#\n Please just select a 1 - 6 digit Phab ticket #. With or without the "T"\ndashes and spaces are OK');} else {t = t.replace(/[\-\s]/, '');window.location = 'cindy.wmflabs.org/notes/index.php/Special:PhabTaskGraph?tasks=' + t}})()})()">Visualize Phab ticket</a>