Created
July 28, 2011 12:40
-
-
Save wez/1111466 to your computer and use it in GitHub Desktop.
Page One: support for theregister
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 -ur pageone.orig/manifest.json pageone.wez/manifest.json | |
--- pageone.orig/manifest.json 2011-07-28 08:26:07.000000000 -0400 | |
+++ pageone.wez/manifest.json 2011-07-28 08:38:08.000000000 -0400 | |
@@ -1,7 +1,10 @@ | |
{ | |
"content_scripts": [ { | |
"js": [ "singlepage.js" ], | |
- "matches": [ "*://*.details.com/*", "*://*.newyorker.com/*", "*://*.theatlantic.com/*", "*://*.gourmet.com/*", "*://*.slate.com/*", "*://*.vanityfair.com/*", "*://*.wired.com/*", "*://*.nytimes.com/*", "*://*.observer.com/*", "*://*.thenation.com/*", "*://*.businessweek.com/*", "*://*.tnr.com/*", "*://*.rollingstone.com/*", "*://*.washingtonpost.com/*", "*://*.laphamsquarterly.org/*", "*://*.outsideonline.com/*", "*://*.gq.com/*", "*://*.moreintelligentlife.com/*", "*://*.foreignpolicy.com/*", "*://*.villagevoice.com/*", "*://*.cjr.org/*" ], | |
+ "matches": [ "*://*.details.com/*", "*://*.newyorker.com/*", "*://*.theatlantic.com/*", "*://*.gourmet.com/*", "*://*.slate.com/*", "*://*.vanityfair.com/*", "*://*.wired.com/*", "*://*.nytimes.com/*", "*://*.observer.com/*", "*://*.thenation.com/*", "*://*.businessweek.com/*", "*://*.tnr.com/*", "*://*.rollingstone.com/*", "*://*.washingtonpost.com/*", "*://*.laphamsquarterly.org/*", "*://*.outsideonline.com/*", "*://*.gq.com/*", "*://*.moreintelligentlife.com/*", "*://*.foreignpolicy.com/*", "*://*.villagevoice.com/*", "*://*.cjr.org/*", | |
+ "*://*.theregister.co.uk/*", "*://*.reghardware.com/*", | |
+ "*://*.theregister.com/*" | |
+ ], | |
"run_at": "document_start" | |
} ], | |
"description": "Always display the single-page version of articles at popular news sites.", | |
@@ -10,7 +13,7 @@ | |
"48": "icon48.png" | |
}, | |
"key": "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDikaAN7f2G0abOFO+EWaY+8zcfMaaUZm25LQSQJf7G3nH4uw0l7/zQT3iVzqnFo5BL0LAMa6C5vaovtC+8rQPsTZ1T+yAHYxEiFGUrHIMhzroiLEsl8rL9c5oGvHCZaE0pEDNWETZCFNHaUX13f+Dh9N88ssGYBgZ7EIponXqgwIDAQAB", | |
- "name": "Page One - Banish Multipage Articles", | |
+ "name": "Page One - Banish Multipage Articles (WEZ)", | |
"update_url": "http://clients2.google.com/service/update2/crx", | |
"version": "1.1" | |
} | |
diff -ur pageone.orig/singlepage.js pageone.wez/singlepage.js | |
--- pageone.orig/singlepage.js 2011-07-28 08:26:07.000000000 -0400 | |
+++ pageone.wez/singlepage.js 2011-07-28 08:35:27.000000000 -0400 | |
@@ -26,7 +26,12 @@ | |
'moreintelligentlife.com' : 'page=full', | |
'foreignpolicy.com' : 'page=full', | |
'villagevoice.com' : [ /(\/\d{4}\-\d{2}\-\d{2}\/[^\/]+\/[^\/]+\/)(\d+[^\?]*)?(\?.+)?$/, '$1all$3/' ], | |
- 'cjr.org' : 'page=all' | |
+ 'cjr.org' : 'page=all', | |
+ | |
+ //wez | |
+ 'www.theregister.co.uk': [ /^(.*)\/$/, '$1/print.html' ], | |
+ 'theregister.com': [ /^(.*)\/$/, '$1/print.html' ], | |
+ 'reghardware.com': [ /^(.*)\/$/, '$1/print.html' ], | |
}, | |
'domains' : '', | |
'rq' : /^.*?\?(.*)/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment