Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Chrome拡張機能をつくる #TechLunch
Search
Livesense Inc.
PRO
April 22, 2014
Technology
97
0
Share
Chrome拡張機能をつくる #TechLunch
Chrome拡張機能をつくる
2013/11/26 (水) @ Livesense TechLunch
発表者:鈴木 健太
Livesense Inc.
PRO
April 22, 2014
More Decks by Livesense Inc.
See All by Livesense Inc.
28新卒_Webエンジニア職採用_会社説明資料
livesense
PRO
0
55
27新卒_総合職採用_会社説明資料
livesense
PRO
0
4.6k
27新卒_Webエンジニア職採用_会社説明資料
livesense
PRO
0
9k
株式会社リブセンス・転職会議 採用候補者様向け資料
livesense
PRO
0
350
株式会社リブセンス 会社説明資料(報道関係者様向け)
livesense
PRO
1
1.7k
データ基盤の負債解消のためのリプレイス
livesense
PRO
0
600
26新卒_総合職採用_会社説明資料
livesense
PRO
0
13k
株式会社リブセンス会社紹介資料 / Invent the next common.
livesense
PRO
2
63k
26新卒_Webエンジニア職採用_会社説明資料
livesense
PRO
1
13k
Other Decks in Technology
See All in Technology
Agent Skillsで実現する記憶領域の運用とその後
yamadashy
2
1.4k
生成AIが変える SaaS の競争原理と弁護士ドットコムのプロダクト戦略
bengo4com
1
3.6k
20260513_生成AIを専属DSに_AI分析結果の検品テクニック_ハンズオン_交通事故データ
doradora09
PRO
0
210
毎日の作業を Claude Code 経由にしたら、 ノウハウがコードになった
kossykinto
1
1.1k
要件定義の精度を高めるための型と生成AIの活用 / Using Types and Generative AI to Improve the Accuracy of Requirements Definition
haru860
0
310
[Oracle TechNight#99] 生成AI時代のAI/ML入門 ~ AIとオラクルデータベースの関係 (後半)
oracle4engineer
PRO
3
240
試作とデモンストレーション / Prototyping and Demonstrations
ks91
PRO
0
190
Digital Independence: Why, When and How
wannesrams
0
300
AIエージェントの支払い基盤 AgentCore Payments概要
kmiya84377
1
130
雑談は、センサーだった
bitkey
PRO
2
210
カオナビに Suspenseを導入するまで / The Road to Suspense at kaonavi
kaonavi
1
430
ファインディの事業拡大を支える 拡張可能なデータ基盤へのリアーキテクチャ
hiracky16
0
930
Featured
See All Featured
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
230
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
180
Discover your Explorer Soul
emna__ayadi
2
1.1k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.1k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
530
Leo the Paperboy
mayatellez
7
1.7k
Agile that works and the tools we love
rasmusluckow
331
21k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
240
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
140
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
490
Git: the NoSQL Database
bkeepers
PRO
432
67k
30 Presentation Tips
portentint
PRO
1
290
Transcript
γεςϜ։ൃ෦ɹϝσΟΞ։ൃୈ̎άϧʔϓ Copyright © LIVESENSE Inc. ླɹ݈ଠ Chrome֦ுػೳΛ࡞Δ Cybozu Hack
None
None
拡張機能でできること
• λϒ • ͓ؾʹೖΓ • ݱࡏද͍ࣔͯ͠Δϖʔδ • όοΫάϥϯυʹৗற • ΫϦοϓϘʔυ
• ΫοΩʔ • σεΫτοϓ௨ ͍Ζ͍Ζ͍͡Ε·͢ http://developer.chrome.com/extensions/declare_permissions.html
• Javascript • HTML • Css • ը૾ ඞཁͳͷ
None
Chromeで確認
作り方
manifest.json ઃఆϑΝΠϧ { "manifest_version": 2, “name”:
“拡張機能の名前", “version”: “バージョン番号", “descrip8on”: “この拡張機能はこんなことができます", "icons": {...}, "background": { “persistent”: false // バックグラウンドに常駐しない }, “background_page”: ..., // バックグラウンドで色々やってくれるやつ “permissions”: [“hCp://*.google.com/”, ”no8fica8ons“], // 権限ください 続く…
manifest.json ઃఆϑΝΠϧ …続き "browser_ac8on": {
“default_icon”: “img/icon.png”, // 表示するアイコン “default_popup”: “popup.html” // アイコンをクリックしたときに表示する画面 }, “op8ons_page”: “op8ons.html” // オプション(設定)画面 }
৭ʑͬͯΈΔ %&.0
Chromeͷ֦ுػೳ͕ॏ͍ݪҼͷҰ͕ͭ ʮόοΫάϥϯυϖʔδ͕ৗʹ։͍͍ͯΔʯ͜ͱ όοΫάϥϯυʹৗற͠ͳ͍ ඞཁʹԠͯ͡ϖʔδΛ։͍ͯϦιʔεফඅΛݮ͢Δ &WFOU1BHF
# 5ຖʹόοΫάϥϯυΛى͜͢ΞϥʔϜΛηοτ chrome.alarms.create(‘alarmName’, { periodInMinutes: 5}); # ΞϥʔϜ͕ͳͬͨͱ͖ͷॲཧ chrome.alarms.onAlarm.addListener(function(alarm) {
alert(alarm.name); }, this)); όοΫάϥϯυΞϥʔϜͰى͜͞ΕΔ
σʔλͷอଘ MPDBM4UPSBHF ͍ͭϖʔδ͕ফ͍͍͑ͯΑ͏ʹɺσʔλஞ࣍อଘ
CybozuのChrome拡張機能 をつくってみた
αΠϘζ͋Δ͋Δ ༧ఆ͕ೖ͍ͬͯͨͷʹΕͯͨ
ということで、 予定の数分前に通知してくれる 拡張機能をつくってみた
αΠϘζ αΠϘζެࣜΩϟϥΫλʔʮϘζϚϯʯ͕௨ͯ͘͠Ε·͢ɻ
αΠϘζ %&.0
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ɻ