20,741
edits
m (→The Script: change to use https in prepend() transformations) |
m (→The Script: change to use https in prepend() transformations, dbLog simplification, chronological list of contributors) |
||
| Line 353: | Line 353: | ||
// ==UserScript== | // ==UserScript== | ||
// @name Instant-Cquotes | // @name Instant-Cquotes | ||
// @version 0. | // @version 0.29 | ||
// @description Automatically converts mailing list and forum quotes into | // @description Automatically converts FlightGear mailing list and forum quotes into MediaWiki markup (cquotes). | ||
// @description:it Converte automaticamente citazioni dalla mailing list e dal forum di FlightGear in marcatori MediaWiki (cquote). | // @description:it Converte automaticamente citazioni dalla mailing list e dal forum di FlightGear in marcatori MediaWiki (cquote). | ||
// @author Hooray, bigstones, Philosopher, | // @author Hooray, bigstones, Philosopher, Red Leader & Elgaton (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 https://sourceforge.net/p/flightgear/mailman/* | ||
| Line 363: | Line 363: | ||
// @namespace http://wiki.flightgear.org/FlightGear_wiki:Instant-Cquotes | // @namespace http://wiki.flightgear.org/FlightGear_wiki:Instant-Cquotes | ||
// @run-at document-end | // @run-at document-end | ||
// @require | // @require https://code.jquery.com/jquery-2.1.4.min.js | ||
// @require | // @require https://code.jquery.com/ui/1.11.4/jquery-ui.min.js | ||
// @resource jQUI_CSS | // @resource jQUI_CSS https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css | ||
// @grant GM_addStyle | // @grant GM_addStyle | ||
// @grant GM_getResourceText | // @grant GM_getResourceText | ||
| Line 602: | Line 602: | ||
// Initialize | // Initialize | ||
function init() { | function init() { | ||
dbLog(' | dbLog('page load handler'); | ||
if (Boolean(USE_NG)) { | if (Boolean(USE_NG)) { | ||
dbLog(" | dbLog("devel version (WIP)"); | ||
document.onmouseup = instantCquoteNG; | document.onmouseup = instantCquoteNG; | ||
}else { | }else { | ||
dbLog(" | dbLog("standard version"); | ||
document.onmouseup = instantCquote; | document.onmouseup = instantCquote; | ||
} | } | ||
| Line 1,017: | Line 1,017: | ||
function dbLog(message) { | function dbLog(message) { | ||
if (Boolean(DEBUG)) { | if (Boolean(DEBUG)) { | ||
console.log(message); | console.log("Instant cquotes:"+message); | ||
} | } | ||
} | } | ||