FlightGear wiki:Instant-Refs: Difference between revisions

Jump to navigation Jump to search
m
Cleaup comment + regex simplification
m (→‎Installation: Firefox: Hint)
m (Cleaup comment + regex simplification)
Line 36: Line 36:
# Install [http://www.greasespot.net/ Greasemonkey].
# Install [http://www.greasespot.net/ Greasemonkey].
# Save [[#The Script|the script]] below as <code>instant_cquotes.user.js</code>, then drag-and-drop it into Firefox.
# Save [[#The Script|the script]] below as <code>instant_cquotes.user.js</code>, then drag-and-drop it into Firefox.
{{Tip|go to Tools > Addons, and adjust preference for websites, such that it includes a wilecard towards the end of included pages, such as <pre>https://sourceforge.net/p/flightgear/mailman/flightgear-devel/*</pre>, for multi-page support.}}
{{Tip|Go to Tools > Addons, and adjust preference for websites, such that it includes a wildcard towards the end of included pages, such as below for multi-page support.
<code><nowiki>https://sourceforge.net/p/flightgear/mailman/flightgear-devel/*</nowiki></code>}}
* '''Chrome/Chromium''', '''Opera''', or '''Safari'''
* '''Chrome/Chromium''', '''Opera''', or '''Safari'''
# Install [https://tampermonkey.net/ Tampermonkey] (download links: [https://tampermonkey.net/index.php?ext=dhdg&browser=chrome Chrome/Chromium], [https://tampermonkey.net/index.php?ext=dhdg&browser=opera Opera], [https://tampermonkey.net/index.php?ext=dhdg&browser=safari Safari]).
# Install [https://tampermonkey.net/ Tampermonkey] (download links: [https://tampermonkey.net/index.php?ext=dhdg&browser=chrome Chrome/Chromium], [https://tampermonkey.net/index.php?ext=dhdg&browser=opera Opera], [https://tampermonkey.net/index.php?ext=dhdg&browser=safari Safari]).
Line 107: Line 108:
         author: {
         author: {
             xpath: "../../../tr/td/div/small/text()",
             xpath: "../../../tr/td/div/small/text()",
             transform: extract(/^From: (.*) <.*@.*>/)
             transform: extract(/From: (.*) <.*@.*>/)
         },
         },
         title: {
         title: {
Line 114: Line 115:
         date: {
         date: {
             xpath: "../../../tr/td/div/small/text()",
             xpath: "../../../tr/td/div/small/text()",
             transform: extract(/ - (.*-.*-.*) /)
             transform: extract(/- (.*-.*-.*) /)
         },
         },
         url: {
         url: {
Line 144: Line 145:
         date: {
         date: {
             xpath: "../p/text()[2]",
             xpath: "../p/text()[2]",
             transform: extract(/» (.*, [0-9][0-9][0-9][0-9])/)
             transform: extract(/» (.*, [0-9]{4})/)
         },
         },
         url: {
         url: {

Navigation menu