Skip to content

Instantly share code, notes, and snippets.

@cbowns cbowns/gist:1115893
Created Jul 30, 2011

Embed
What would you like to do?
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
You can’t perform that action at this time.