20,741
edits
m (→The Script) |
|||
| Line 251: | Line 251: | ||
// hash with supported websites/URLs | |||
var CONFIG = { | var CONFIG = { | ||
| Line 263: | Line 264: | ||
] | ] | ||
}, | }, | ||
// regex/xpath and transformations for extracting various required fields | |||
author: { | author: { | ||
xpath: 'tbody/tr[1]/td/div/small/text()', | xpath: 'tbody/tr[1]/td/div/small/text()', | ||
| Line 279: | Line 281: | ||
} | } | ||
}, | }, | ||
// next website/URL (forum) | |||
'FlightGear forum': { | 'FlightGear forum': { | ||
url_reg: /http:\/\/forum\.flightgear\.org\/.*/, | url_reg: /http:\/\/forum\.flightgear\.org\/.*/, | ||
| Line 330: | Line 333: | ||
} | } | ||
// hash to map URLs (wiki article, issue tracker, sourceforge link, forum thread etc) to existing wiki templates | |||
var URL2TemplateTable = { | |||
// placeholder for now | |||
}; // TemplateTable | |||
// output methods (alert and jQuery for now) | |||
var METHODS = { | var METHODS = { | ||
// Shows a window.prompt() message box | // Shows a window.prompt() message box | ||