Safari Books Online

Safari Books Online requires the following configuration in config.txt:

Option CookiePassThrough
Title Safari Books
URL http://proquest.safaribooksonline.com
HJ https://www.safaribooksonline.com
HJ www.safaribooksonline.com
DJ safaribooksonline.com
Find targetpage=https://
Replace targetpage=https://^A
Find document.location.replace(redirectPage);
Replace redirectPage = redirectPage.replace(/^^http:\/\/proquest.safaribooksonline.com/, "http://^pproquest.safaribooksonline.com^/").replace(/^^https:\/\/ssl.safaribooksonline.com/, "https://^sssl.safaribooksonline.com^/"); document.location.replace(redirectPage);
Option Cookie

Note: The final Replace line should be entered as one continuous line, beginning with Replace redirectPage and ending with (redirectPage);. Option Cookie should follow this line as the final directive of this stanza.