|
1 | 1 | rules:
|
2 | 2 |
|
| 3 | + |
3 | 4 | # twitter rules
|
4 | 5 | #=================================================================
|
5 | 6 | - url_prefix: 'com,twitter)/i/profiles/show/'
|
6 | 7 |
|
7 | 8 | fuzzy_lookup: '/profiles/show/.*with_replies\?.*(max_id=[^&]+)'
|
8 | 9 |
|
9 |
| - - url_prefix: 'com,twimg,abs)/c/swift/en/bundle/boot' |
| 10 | +# - url_prefix: 'comx,twimg,abs)/c/swift/en/bundle/boot' |
10 | 11 |
|
11 |
| - rewrite: |
12 |
| - js_rewrite_location: urls |
13 |
| - js_regexs: |
14 |
| - - match: 'window.location' |
15 |
| - replace: 'window.WB_wombat_location' |
| 12 | +# rewrite: |
| 13 | +# js_rewrite_location: urls |
| 14 | +# js_regexs: |
| 15 | +# - match: 'window.location' |
| 16 | +# replace: 'window.WB_wombat_location' |
16 | 17 |
|
17 |
| - - match: 'document.location' |
18 |
| - replace: 'document.WB_wombat_location' |
| 18 | +# - match: 'document.location' |
| 19 | +# replace: 'document.WB_wombat_location' |
19 | 20 |
|
20 | 21 | #- url_prefix: 'com,twimg,ton)/'
|
21 | 22 |
|
22 | 23 | # rewrite:
|
23 | 24 | # js_rewrite_location: all
|
24 | 25 |
|
25 |
| - - url_prefix: 'com,twimg,amp)/amplify-web-player/prod/js/build.min.js' |
| 26 | +# - url_prefix: 'comx,twimg,amp)/amplify-web-player/prod/js/build.min.js' |
26 | 27 |
|
27 |
| - rewrite: |
| 28 | +# rewrite: |
28 | 29 | #js_rewrite_location: all
|
29 |
| - js_regexs: |
30 |
| - - match: ';$' |
31 |
| - replace: '; $(function() {{ var div = $(".poster-image")[0]; window._wb_wombat.watch_elem(div, function(elem) {{ if (elem.tagName == "IMG") {{ elem.setAttribute("width", $(div).width()); elem.setAttribute("height", $(div).height()); }} }}) }} );' |
| 30 | +# js_regexs: |
| 31 | +# - match: ';$' |
| 32 | +# replace: '; $(function() {{ var div = $(".poster-image")[0]; window._wb_wombat.watch_elem(div, function(elem) {{ if (elem.tagName == "IMG") {{ elem.setAttribute("width", $(div).width()); elem.setAttribute("height", $(div).height()); }} }}) }} );' |
32 | 33 |
|
33 | 34 |
|
34 | 35 | # facebook rules
|
@@ -168,17 +169,18 @@ rules:
|
168 | 169 | # vine
|
169 | 170 | - url_prefix: 'co,vine,cdn,'
|
170 | 171 |
|
171 |
| - rewrite: |
172 |
| - js_rewrite_location: urls |
173 |
| - js_regexs: |
174 |
| - - match: 'window.location' |
175 |
| - replace: 'WB_wombat_location' |
| 172 | +# rewrite: |
| 173 | +# js_rewrite_location: urls |
| 174 | +# js_regexs: |
| 175 | +# - match: 'window.location' |
| 176 | +# replace: 'WB_wombat_location' |
176 | 177 |
|
177 | 178 | fuzzy_lookup:
|
178 | 179 | replace: 'videos'
|
179 | 180 | match: 'videos(?:_[^/]+)?/([^?]+)'
|
180 | 181 |
|
181 | 182 | # disqus
|
| 183 | + #- url_prefix: ['com,disqus', 'com,disquscdn'] |
182 | 184 | - url_prefix: 'com,disqus'
|
183 | 185 |
|
184 | 186 | rewrite:
|
|
0 commit comments