Skip to content

Instantly share code, notes, and snippets.

@cbowns
Created July 30, 2011 19:30
Show Gist options
  • Save cbowns/1115893 to your computer and use it in GitHub Desktop.
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
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