573
edits
(added an *experimental* jquery dialog output + escapeHtml for code snippets quoting (not yet used)) |
m (→The Script: oops) |
||
Line 49: | Line 49: | ||
== The Script == | == The Script == | ||
<syntaxhighlight lang="javascript"> | |||
// ==UserScript== | // ==UserScript== | ||
// @name instant-cquotes | // @name instant-cquotes | ||
Line 148: | Line 149: | ||
var diagParam = { title: "Copy your quote with CTRL-C", | var diagParam = { title: "Copy your quote with CTRL-C", | ||
modal: true, | modal: true, | ||
buttons: [{ text: "Select all", click: function () { $( | buttons: [{ text: "Select all", click: function () { $('quotedtext').select(); } }, | ||
{ text: "Cancel", click: function () { $( | { text: "Cancel", click: function () { $(this).dialog("close"); } }] | ||
}; | }; | ||
edits