addon sdk content scripts

16
Irvin @ MozTW (Mozilla Taiwan Community) Add-on SDK Content Scripts My experience of Find at AppShopper

Upload: irvin-chen

Post on 07-May-2015

1.130 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Addon sdk content scripts

Irvin @ MozTW (Mozilla Taiwan Community)

Add-on SDK Content ScriptsMy experience of Find at AppShopper

Page 2: Addon sdk content scripts

Purchase iPhone,The beginning of money spent.

Page 3: Addon sdk content scripts

Fun apps often expensive

Page 4: Addon sdk content scripts

Price often drop after the day you brought.

Page 5: Addon sdk content scripts

1

2

3

It cost 3 steps to track the app price

Page 6: Addon sdk content scripts

Lazy

The Mother of Great Innovation

Page 7: Addon sdk content scripts

Content Scripts!

Page 8: Addon sdk content scripts

Add-on Builder + SDK + jQuerylove jQuery, hate restart, don’t do cmd job.

Page 10: Addon sdk content scripts

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

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

Do something evil at script.js!

Page 13: Addon sdk content scripts

Test on the fly

Get final .XPI package

The revision++ whenever you saved. Orz...

Page 14: Addon sdk content scripts

It Just Work!Had not been reviewed yet.

Queue position 55 of 243 after 2/3 month...

Page 15: Addon sdk content scripts

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

irvinfly irvin.sto.tw www.slideshare.net / irvinfly