addon sdk content scripts
TRANSCRIPT
![Page 1: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/1.jpg)
Irvin @ MozTW (Mozilla Taiwan Community)
Add-on SDK Content ScriptsMy experience of Find at AppShopper
![Page 2: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/2.jpg)
Purchase iPhone,The beginning of money spent.
![Page 3: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/3.jpg)
Fun apps often expensive
![Page 4: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/4.jpg)
Price often drop after the day you brought.
![Page 5: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/5.jpg)
1
2
3
It cost 3 steps to track the app price
![Page 6: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/6.jpg)
Lazy
The Mother of Great Innovation
![Page 7: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/7.jpg)
Content Scripts!
![Page 8: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/8.jpg)
Add-on Builder + SDK + jQuerylove jQuery, hate restart, don’t do cmd job.
![Page 9: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/9.jpg)
Fork Me!http://go.sto.tw/bldr-app
![Page 10: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/10.jpg)
upload jQuery,create a js file.
A strange bug appears that it only accept specific ver. and non-minify jQuery library.
![Page 11: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/11.jpg)
rubular.com: A great place to fix your non-working regex.
hook-up the script.js and website in main.js by setting URL regex in PageMod API
![Page 12: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/12.jpg)
Do something evil at script.js!
![Page 13: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/13.jpg)
Test on the fly
Get final .XPI package
The revision++ whenever you saved. Orz...
![Page 14: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/14.jpg)
It Just Work!Had not been reviewed yet.
Queue position 55 of 243 after 2/3 month...
![Page 15: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/15.jpg)
If your content script need some specific API function of Add-on SDK...
Check the post at Mozilla Add-ons Blog:Security Mechanisms in the Add-on SDK
![Page 16: Addon sdk content scripts](https://reader034.vdocuments.mx/reader034/viewer/2022052303/554ad6dbb4c9056a798b47d4/html5/thumbnails/16.jpg)
irvinfly irvin.sto.tw www.slideshare.net / irvinfly