Created
July 30, 2011 19:30
-
-
Save cbowns/1115893 to your computer and use it in GitHub Desktop.
Patch for PageOne (http://globalmoxie.com/blog/page-one-safari-chrome-extension.shtml) to support more Slate.com articles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/pageone/pageone.safariextension/singlepage_init.js b/pageone/pageone.safariextension/singlepage_init.js | |
index 6a13089..a709389 100644 | |
--- a/pageone/pageone.safariextension/singlepage_init.js | |
+++ b/pageone/pageone.safariextension/singlepage_init.js | |
@@ -7,7 +7,7 @@ var GM_SPN = { | |
'theatlantic.com' : [ /\/archive\//, '/print/' ], | |
'gourmet.com' : 'printable=true', | |
'details.com' : 'printable=true', | |
- 'slate.com' : [ /(\/id\/\d+\/)($|pagenum\/\d+.*)/, '$1pagenum/all/'], | |
+ 'slate.com' : [ /(\/id\/\d+\/)($|pagenum\/\d+.*|\?from=rss)/, '$1pagenum/all/'], | |
'wired.com' : [ /(\/\d{4}\/\d{2}\/[^\/]+\/)(\d+[^\?]*)?(\?.+)?$/, '$1all/1$3' ], | |
'observer.com' : 'show=all', | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment