-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathhandledocs
executable file
·17 lines (15 loc) · 1.35 KB
/
handledocs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
find docs/ -name "*.html"|xargs sed -i "/www.google.com\/jsapi/d"
# fonts.useso.com 已经无法加载,而原 fonts.googleapis.com 已经可以访问
#find docs/ -name "*.html" |xargs sed -i "s/fonts.googleapis.com/fonts.useso.com/g"
#sed -i 's/\/\/lh4.ggpht.com\/-lfjzgG5Dqrk\/UHMThRtpRwI\/AAAAAAAABpk\/h4d3nsmkgPM\/s400\/mint.png/..\/images\/distribute\/mint.png/' docs/develop/index.html
#sed -i "s/\/\/3.bp.blogspot.com\/-k33rf398Lqw\/UlRUMQQRUNI\/AAAAAAAAClM\/pSwz2YgQpmY\/s1600\/gps-play_games_logo.png/..\/images\/google\/gps-play_games_logo.png/g" docs/develop/index.html
./handleajax plusone.js "https://apis.google.com/js/plusone.js" js
./handleajax analytics.js "www.google-analytics.com/analytics.js" html
./handleajax ga.js "//www.google-analytics.com/ga.js" html
#./handleajax ga.js "('https:' == document.location.protocol.*ga\.js'" html "" "'"
./handleajax ytblogger_lists_unified.js "https://developer.android.com/ytblogger_lists_unified.js" html
#./handleajax jd_lists_unified.js "http://developer.android.com/jd_lists_unified.js" html
./handleajax jd_extras.js "http://developer.android.com/jd_extras.js" html
./handleajax jd_collections.js "http://developer.android.com/jd_collections.js" html
./handleajax jd_tag_helpers.js "http://developer.android.com/jd_tag_helpers.js" html
find docs/ -name "*.html"|xargs sed -i 'N;/\n.*(function(i,s,o,/,/<\/script>/d'