addon sdk content scripts

Post on 07-May-2015

1.130 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Irvin @ MozTW (Mozilla Taiwan Community)

Add-on SDK Content ScriptsMy experience of Find at AppShopper

Purchase iPhone,The beginning of money spent.

Fun apps often expensive

Price often drop after the day you brought.

1

2

3

It cost 3 steps to track the app price

Lazy

The Mother of Great Innovation

Content Scripts!

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

upload jQuery,create a js file.

A strange bug appears that it only accept specific ver. and non-minify jQuery library.

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

Do something evil at script.js!

Test on the fly

Get final .XPI package

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

It Just Work!Had not been reviewed yet.

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

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

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

top related