40
Internet Browsers and their Extensions Introducing…… Presented by Group 6

Internet Browsers and their Extensions

  • Upload
    aloha

  • View
    58

  • Download
    3

Embed Size (px)

DESCRIPTION

Introducing……. Internet Browsers and their Extensions. Presented by Group 6. Group Members. Outline. History of Browser Development. 王毓璟. Tim Berners-Lee…. 1990 年聖誕節 , Tim Berners-Lee 正式實作了 http 的客戶端及伺服器 架構 。 1991 年 Tim Berners-Lee 完成了第一個瀏覽器, WorldWideWeb 。 - PowerPoint PPT Presentation

Citation preview

Page 1: Internet  Browsers and their  Extensions

Internet Browsers and

their Extensions

Introducing……

Presented by Group 6

Page 2: Internet  Browsers and their  Extensions

Group MembersB97705037 資管三 陳少祁

B97705042 資管三 李孟修

B97705044 資管三 胡御雲

B97705058 資管三 王毓璟

B97705063 資管三 張竣貿

B97705070 資管三 江栢暉

Page 3: Internet  Browsers and their  Extensions

Outline

History of Browser

Development

Mozilla FireFox

Google Chrome & Extensions

Extensions We Build

Future Development & Conclusion

Page 4: Internet  Browsers and their  Extensions

History of Browser

Development

王毓璟

Page 5: Internet  Browsers and their  Extensions

Tim Berners-Lee… 1990 年聖誕節, Tim Berners-Lee 正式實作

了 http 的客戶端及伺服器架構。

1991 年 Tim Berners-Lee 完成了第一個瀏覽器, WorldWideWeb 。集合了當時許多創新的軟硬體技術,為瀏覽器踏出了

承先啟後的一步。最初,瀏覽器被視為處理 CERN 龐大電話簿的實用

工具。

Page 6: Internet  Browsers and their  Extensions

Followers 1993 年 NCSA Mosaic Web browser 被開發

出來。世界上最早的 GUI 瀏覽器之一。許多圖形介面瀏覽器的始祖。

主持人 Marc Andreessen 脫離成立Netscape 。1994 年推出 Netscape Navigator 。當時最成功、市占率最高之瀏覽器,市占超越

90% 。

Page 7: Internet  Browsers and their  Extensions

Netscape vs. Microsoft

1995 年推出了自有的瀏覽器, Internet Explorer 。將其嵌入於自行開發的 Windows OS 中。

1998 年美國 vs. Microsoft 反托拉斯訴訟案。

IE 在市場上的獨佔性已經不可避免。

Page 8: Internet  Browsers and their  Extensions

Up to Now… Netscape 在 1998 年成立了 Mozilla

Foundation 。Released Mozilla FireFox 。Halt Netscape Navigator Support

Google 於 2008 年 Sep 推出 Chrome 0.2.149 版。Javascript Engine – V8

IE 9 b2 、 Opera 11.0 、 Chrome 10 、 FireFox 4.0 b8 。Separate add-ons & extensions processes from

browser

Page 9: Internet  Browsers and their  Extensions

A Little Comparison

Page 10: Internet  Browsers and their  Extensions

A Little Comparison

Page 11: Internet  Browsers and their  Extensions

Mozilla FireFox

Fashion Your Firefox

Page 12: Internet  Browsers and their  Extensions

Mozilla 基金會 (MoFo)

1998 Netscape 建立 Mozilla 組織 2003 年成立 Mozilla 基金會 非營利組織 支援和領導 Mozilla Open Source 專

Page 13: Internet  Browsers and their  Extensions

Mozilla Application Suite 跨平台套裝軟體 Netscape Navigator( 網頁瀏覽器 ) Communicator (電子郵件客戶端) Composer (網頁開發軟體) ChatZilla ( IRC 用戶端軟體) 可在 Linux 、 Windows 、 Mac OS X

下執行

Page 14: Internet  Browsers and their  Extensions

Mozilla Firefox 從 Mozilla Application Suite 獨立出來

Open Source Code

解決軟體肥大問題

取代功能複雜的 Mozilla Suite

Page 15: Internet  Browsers and their  Extensions

設計準則 不多不少剛剛好,製作有用的瀏覽器 易用性、輕量 回應速度要快 !!!

讓使用者覺得煩 - 感覺上的速度比實際速度重要

提供擴充系統添加新功能又不影響核心

自訂瀏覽器以符合特定需求

Page 16: Internet  Browsers and their  Extensions

特色 分頁瀏覽 即時書籤 下載管理員 自訂搜尋引擎 附加元件 ( 擴充套件、佈景主題 ) 跨平台支援、支援多種網路標準

Page 17: Internet  Browsers and their  Extensions

市場接納度 截至 2010 年 10 月 => 市占率 22.83%

僅次於微軟 Internet Explorer

第二流行的瀏覽器版本

Page 18: Internet  Browsers and their  Extensions

[ 資料來源: StatCounter]

Page 19: Internet  Browsers and their  Extensions

Demo

Video made by B97705070 Patrick

Page 20: Internet  Browsers and their  Extensions

Firesheep

Page 21: Internet  Browsers and their  Extensions

Google Chrome Extensions

李孟修、陳少祁

Page 22: Internet  Browsers and their  Extensions

2009 年 9 月 6 日 Google Chrome 首次預設啟用擴充功能,並提供數款擴充功能給使用者試用

最熱門的 Extension 擁有 160 萬左右的使用者

首個版本於 2008 年 9 月 8 日 版本為 0.2.149 首個穩定版本於 2008 年 12 月 11 日 版本為

1.0.154 目前版本為 8.0.552 2010 年 12 月 2 日發布 2010 年 11 月時市場佔有率達 9.27% 為當前瀏覽器市占率第三名

Google Chrome

Page 23: Internet  Browsers and their  Extensions

popup.html<!doctype html><html lang=en><meta charset=UTF-8><body><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <style type="text/css"> <!--

.c3 {color: blue;}

div.c1 {color: #ccc;background-image: url(sprite.png);background-repeat: no-repeat;background-position: 134px -2038px;}div.c2 {color: red;background-image: url(sprite.png);background-repeat: no-repeat;background-position: 3px -2669px;}div.c3 {color: #ccc;background-color: #ff9;}

-->

<!doctype html>

<html lang=en>

<meta charset=UTF-8>

<body>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>

<style type="text/css">

<!--

.c3 {

color: blue;

}

div.c1 {

color: #ccc;

background-image: url(sprite.png);

background-repeat: no-repeat;

background-position: 134px -2038px;

}

div.c2 {

color: red;

background-image: url(sprite.png);

background-repeat: no-repeat;

background-position: 3px -2669px;

}

div.c3 {

color: #ccc;

background-color: #ff9;

}

-->

manifest.json{

"name": "Extension",

"version": "1.0",

"description": "The first extension that I made.",

"browser_action": {

"default_icon": "icon.png",

"popup" : "popup.html"

},

"background_page" : "background.html",

"permissions": [

"http://api.flickr.com/",

"http://cop416.pixnet.net/blog/post/22544834",

"http://www.youtube.com/"

]

}

</style> <form name="in" >

Dictionary:<input type=text name=w class="c3" title="Type A Word" /><br />

<input type="button" name="submit" value="Look up" class="class_button" onClick="go(this.form)" >

</form>

<script type="text/javascript">

<!--

$(function(){

// 取得要加上提示的元素並一一設定$(":text, textarea").each(function(i, ele){

// 先把目前元素轉換成 jQuery 物件後記錄起來// 再取得 title 及 className 屬性值var _text = $(ele),

_title = _text.attr("title"),

_class = _text.attr("className") || "";

// 如果有 title 或是 className 值的話,則進行改造if(!!_title || !!_class){

// 在 body 中插入一個空白的 Div 區塊來當提示區塊var _water = $("<div></div>").appendTo("body");

// 設定提示區塊的 css 屬性(基本是讓它跟輸入框一樣)

// position 一定要設成 absolute 才能移來移去_water.css({

position: "absolute",

width: _text.width(),

height: _text.height(),

fontSize: _text.css("fontSize"),

lineHeight: _text.css("lineHeight"),

top: _text.position().top + parseInt(_text.css("borderTopWidth"), 10) + "px",

left: _text.position().left + parseInt(_text.css("borderLeftWidth"), 10) + "px",

paddingTop: _text.css("paddingTop"),

paddingBottom: _text.css("paddingBottom"),

paddingLeft: _text.css("paddingLeft"),

paddingRight: _text.css("paddingRight"),

marginTop: _text.css("marginTop"),

marginBottom: _text.css("marginBottom"),

marginLeft: _text.css("marginLeft"),

marginRight: _text.css("marginRight"),

cursor: "text",

overflow: "hidden"

//--></script>

<script type="text/javascript">

function go (form) {

var url = "http://tw.dictionary.yahoo.com/dictionary?p="+form.w.value;

window.open(url);

document.write('<a target="_new" href ="http://tw.dictionary.yahoo.com/dictionary?p='+form.w.value+'"></a>');

}

</script>

</body>

</html>

// 把提示區塊的內容設成輸入框的 title 值}).html(_title).click(function(){

// 當提示區塊被點擊時,觸發輸入框的 focus 事件_text.trigger("focus");

// 最後加上額外的 className

}).addClass(_class);

// 設定輸入框的 focus 及 blur 事件_text.focus(function(){

// 隱藏提示區塊_water.hide();

}).blur(function(){

// 如果輸入框中沒有值則再顯示提示區塊if(this.value=="") _water.show();

});

}

});

});

//-->

</script>

<script type="text/javascript"><!--

<input type="button" name="submit" value="Look up" class="class_button" onClick="go(this.form)" >

window.document.onkeydown=enter;

function enter(){

 if(event.keyCode==13){

  document.in.submit.focus();

  document.in.submit.click();

 }

}

Make your own chrome extension

Page 24: Internet  Browsers and their  Extensions

Interesting Extension

Page 25: Internet  Browsers and their  Extensions

Screen Capture

Page 26: Internet  Browsers and their  Extensions

IE Tab

Page 27: Internet  Browsers and their  Extensions

Facebook Photo Zoom

Page 28: Internet  Browsers and their  Extensions

AdBlock

Page 29: Internet  Browsers and their  Extensions

Google Dictionary

Page 30: Internet  Browsers and their  Extensions

TW Current Weather

即時天氣狀況顯示Extension

王毓璟

Page 31: Internet  Browsers and their  Extensions

資料來源 - Weather.com

由Weather.com所提供的 RSS Feed 。 全球最大氣象網站,資料包括台灣逾 30 個城

市。 可用住家地址查詢天氣,自行設立氣象新聞中

心,即時報導。 即時壞天氣電話通知。

Page 32: Internet  Browsers and their  Extensions

資料來源 - Weather.com

用 Javascript把 RSS Feed抓進來,再利用XML 的 tags 解讀所需資訊。

URL內含參數自動判斷要找哪個城市的天氣。 宜蘭並無天氣資料,因此改以鄰近的蘇澳作為

其資料來源。

Obtain RSS Feeds provided free by Weather. com

Page 33: Internet  Browsers and their  Extensions

資料來源 – 中央氣象局 Iframe把中央氣象局資料 embed進來。

中央氣象局不提供 RSS Feed , Server也不開放,完全沒有開放直接提取氣象資料的功能。

採一個小時觀測一次,且部分時段無天氣現象觀測。

極多為無人站台、氣象資料不予保證。

Page 34: Internet  Browsers and their  Extensions

簡易架構圖 以網頁功能及關聯做分配:

manifest.jsonindex.htmluv.html

click.html

info.html

background.html

Frontpage of the Extension

Functional Webpages

Page 35: Internet  Browsers and their  Extensions

實際操作

TW Curren

t Weathe

r

• Demostration

Page 36: Internet  Browsers and their  Extensions

TAKE A REST!!

A simple extension for you

張竣貿

Page 37: Internet  Browsers and their  Extensions

Why? We always spend too much time on surfing

the Internet Why can’t I just have a alarm right on my

browser?

Page 38: Internet  Browsers and their  Extensions

How? Two parts of this extension

PopupBackground_pagePopup

Background

Send data

Page 39: Internet  Browsers and their  Extensions

結論

瀏覽器的發展日新月異,支援的功能也越來越強大。

期待在可見的將來,瀏覽器的便利性和支援平台會更加擴張,其Extension也能夠推出更加廣泛及突出的功能。

能夠繼續開發其他實用Extension ,並學以致用!

Page 40: Internet  Browsers and their  Extensions

Group 6

感謝大家的聆聽!