Steven Smith revised this gist . Go to revision
1 file changed, 1 insertion
irccloud-trout.js(file created)
| @@ -0,0 +1 @@ | |||
| 1 | + | javascript: (function () { var text = ""; if (window.getSelection) { text = window.getSelection().toString(); } else if (document.selection && document.selection.type != "Control") { text = document.selection.createRange().text; } else { text = prompt("Enter username", "everyone"); } if (!text) { text = "everyone"; } cb().say("/me slaps " + text.replace(/[<>@+~&]/g, '').trim() + " around a bit with a large trout"); }()); | |
Newer
Older