Open main menu

Bookmarklets

Revision as of 14:02, 27 September 2017 by Freephile (talk | contribs) (need protocol)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 = 'http://cindy.wmflabs.org/notes/index.php/Special:PhabTaskGraph?tasks=' + t}})()})()">Visualize Phab ticket</a>