Skip to content

Instantly share code, notes, and snippets.

@osak
Created January 25, 2012 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osak/1675860 to your computer and use it in GitHub Desktop.
Save osak/1675860 to your computer and use it in GitHub Desktop.
twitpicの仕様変更
Index: core/addon/openimg/pattern_file.json
===================================================================
--- core/addon/openimg/pattern_file.json (revision 642)
+++ core/addon/openimg/pattern_file.json (working copy)
@@ -2,7 +2,11 @@
"twitpic": {
"url": "^http://twitpic\\.com/[a-zA-Z0-9]+",
"attribute": {
- "id": "photo-display"
+ "tag": "img",
+ "src": {
+ "json_class": "Regexp",
+ "data": "^http://.*?\\.twitpicproxy\\.com/photos/(?:large|full)/.*"
+ }
}
},
"yfrog": {
@@ -71,4 +75,4 @@
"class": "photo"
}
}
-}
\ No newline at end of file
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment