20,741
edits
m (→The Script: update script: most sourceforge/mailman URLs are now https:// - also, add more aggressive debugging defaults to track down such issues more easily in the future) |
|||
| Line 206: | Line 206: | ||
// ==UserScript== | // ==UserScript== | ||
// @name Instant-Cquotes | // @name Instant-Cquotes | ||
// @version 0. | // @version 0.24 | ||
// @description Automatically converts mailing list and forum quotes into Mediawiki markup. | // @description Automatically converts mailing list and forum quotes into Mediawiki markup (cquotes). | ||
// @author Hooray, bigstones, Philosopher & Red Leader | // @author Hooray, bigstones, Philosopher & Red Leader (2013-2016) | ||
// @icon http://wiki.flightgear.org/images/6/62/FlightGear_logo.png | // @icon http://wiki.flightgear.org/images/6/62/FlightGear_logo.png | ||
// @match https://sourceforge.net/p/flightgear/mailman/* | |||
// @match http://sourceforge.net/p/flightgear/mailman/* | // @match http://sourceforge.net/p/flightgear/mailman/* | ||
// @match http://forum.flightgear.org/* | // @match http://forum.flightgear.org/* | ||
| Line 475: | Line 476: | ||
} | } | ||
catch (error) { | catch (error) { | ||
dbLog("Failed extracting post id!") | |||
return; | return; | ||
} | } | ||
| Line 623: | Line 625: | ||
try { | try { | ||
METHODS.jQueryDiag(msg); | METHODS.jQueryDiag(msg); | ||
// TODO: unify code & call setClipboard() here | |||
} | } | ||
catch (err) { | catch (err) { | ||
| Line 815: | Line 818: | ||
} | } | ||
function dbLog(message) { | function dbLog(message) { | ||
if (Boolean(DEBUG)) console.log(message); | if (Boolean(DEBUG)) { | ||
} | alert(message); // be much more verbose in debug mode | ||
</syntaxhighlight> | } | ||
else // always log to console | |||
console.log(message); | |||
}</syntaxhighlight> | |||
[[Category:Wiki maintenance]] | [[Category:Wiki maintenance]] | ||