FlightGear wiki:Instant-Refs: Difference between revisions

Jump to navigation Jump to search
→‎The Script: dbLog function: remove alert boxes in debug mode (it's really annoying) log to console instead also update version number
(→‎The Script: remove line numbers to make copy&paste easier; fix date added (was the same as the date of the post) (note: untested))
(→‎The Script: dbLog function: remove alert boxes in debug mode (it's really annoying) log to console instead also update version number)
Line 347: Line 347:
// ==UserScript==
// ==UserScript==
// @name        Instant-Cquotes
// @name        Instant-Cquotes
// @version    0.26
// @version    0.27
// @description Automatically converts mailing list and forum quotes into Mediawiki markup (cquotes).
// @description Automatically converts mailing list and forum quotes into Mediawiki markup (cquotes).
// @author      Hooray, bigstones, Philosopher & Red Leader (2013-2016)
// @author      Hooray, bigstones, Philosopher & Red Leader (2013-2016)
Line 972: Line 972:
function dbLog(message) {
function dbLog(message) {
   if (Boolean(DEBUG)) {
   if (Boolean(DEBUG)) {
     alert(message); // be much more verbose in debug mode
     console.log(message);
   }  
   }
    else // always log to console
      console.log(message);
}
}
</syntaxhighlight>
</syntaxhighlight>


[[Category:Articles containing Instant-Cquotes| ]]
[[Category:Articles containing Instant-Cquotes]]

Navigation menu