FlightGear wiki:Instant-Refs: Difference between revisions

Jump to navigation Jump to search
m
→‎The Script: change to use https in prepend() transformations, dbLog simplification, chronological list of contributors
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.28
// @version    0.29
// @description Automatically converts mailing list and forum quotes into Mediawiki markup (cquotes).
// @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, Elgaton & Red Leader (2013-2016)
// @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    http://code.jquery.com/jquery-2.1.4.min.js
// @require    https://code.jquery.com/jquery-2.1.4.min.js
// @require    http://code.jquery.com/ui/1.11.4/jquery-ui.min.js
// @require    https://code.jquery.com/ui/1.11.4/jquery-ui.min.js
// @resource    jQUI_CSS http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.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('mouseup event');
   dbLog('page load handler');
   if (Boolean(USE_NG)) {
   if (Boolean(USE_NG)) {
     dbLog("Instant Cquotes:devel version (WIP)");
     dbLog("devel version (WIP)");
     document.onmouseup = instantCquoteNG;
     document.onmouseup = instantCquoteNG;
   }else {
   }else {
     dbLog("Instant Cquotes:standard version");
     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);
   }
   }
}
}

Navigation menu