2015-12-01ãã1ã¶æéã®è¨äºä¸è¦§
manifest.jsonã®permissionsã«tabsã追å manifest.json "permissions": [ "tabs" ] chrome.tabs.create({url: éãããURL }); ã¨ã¦ãç°¡åéããã®ã¯... chrome.tabs.remove(tabId); ã ããéããtabã®tabIdã£ã¦ã©ããã£ã¦åå¾ããã®ã javascript - Googleâ¦
hashChangeã¤ãã³ãã¨popStateã¤ãã³ããç£è¦ window.addEventListener('popstate',function(ev){ . . . },false); jquery mobile ãªã navigate ã¤ãã³ãããã åè http://uhyohyo.net/javascript/12_3.html http://www.webcreativepark.net/jquerymobileâ¦
åç´ã«alertãåå®ç¾©ãã¦ãããã°ä¸æ¸ãã§ããããalertã®å ´å(windowsãªãã¸ã§ã¯ã)ã«å±ããã¡ã½ããã®å ´ådelete alertã§å ã®ãã£ãã£ããªã¡ã½ãããæ»ããã¨ãã§ããªãã â» chromeã®å ´åä»æ¹ãªãã®ã§ãå ã®é¢æ°ã¯windows.nativeAlert = window.alertã¿ãâ¦
ãªãã¸ã§ã¯ãããé åã¸å¤æããæ¹æ³ããªããªãè¦ã¤ãããªãã¦å°ã£ããjavascriptã§objectããå¤ã®é åã«å¤æãããã®ã§ãkeyãæ°åã®ãã®ã¯å¤ããããã·ã¥ã®ãã®ãæå¤ã¨è¦ã¤ãããªãã£ãã®ã§å°ã£ããphpã§ã¯ããã·ã¥ã¯é åã¨ä¸ç·ãªã®ã§array_valuesã§ä¸çºâ¦
phpã®str_replaceã ã¨ç°¡å ãã¶ãããããªããã 'é','å°' => '大' ]; $str = str_replace(array_keys($replaces),array_values($replaces),$str); javascriptã ã¨é端ã«é¢åã«ãªãã ã¾ãã§åªæã®ããã var str = "å°å転", map = {"å":"é", "å°":"大"â¦
WEBã®ã²ã¼ã ã¨ãã§DOMã®å¤æ´ãæ¤åºããæ¹æ³ #elementã§DOMã追å ãããå ´åã«doTaskãå®è¡ãã $(function(){ // 対象ãã¼ããé¸æ var target = document.querySelector('#element'); if(!target){ setTimeout(arguments.callee,1000); return false; } // â¦
chromeæ¡å¼µã§ã¯ãµã¤ãå´ã®Javascriptã«ã¯ã¢ã¯ã»ã¹ãããã¨ãã§ããªãã®ã§ã bookmarkletã«ãã¦æµãè¾¼ãã ããscriptè¦ç´ ãDOMæä½ã§è¿½å ããããã¦æµãè¾¼ãã¾ãããµã¤ãå´ã®ã¹ã¯ãªããããchromeæ¡å¼µã«ã¤ãã³ããªã©ãæ»ããã¨ãã§ããªãã®ã§ããã®å ´åã¯ã«ã¹â¦
é常ã®WEBãµã¤ãã§ããã°httpéä¿¡ã¯1åã ããªã®ã§onloadã§å¤§ä¸å¤«ã§ããã backbone.js ã angularjs ã vue.jsãªã©ãã¯ã©ã¤ã¢ã³ããµã¤ãMVCã§ã¯éåæã§httpéä¿¡ãèµ°ãçºã ä¾ãã°ã¯ã©ã¤ã¢ã³ããµã¤ãã ãã§ãã»ãã·ã§ã³ã®ã¿ã¤ã ã¢ã¦ããªã©ãæ¤ç¥ããã®ãé£ãâ¦
ç¾å¨ twitter APIã¯oauhèªè¨¼ãå¿ é ã¨ãªããAPIã®èªè¨¼ãã¼ã®åå¾ã«ã¯ãããããã¼ã®ç»é²ãå¿ é ã¨ãªã£ã¦ããã ....ãç°¡åã«ææ°ã®ãã¤ã¼ããåã£ã¦ãããã®ã§ãjavascriptã§ã¹ã¯ã¬ã¤ãã³ã°ãã¦ãããã¨ã«ãããjavascriptã§ã¹ã¯ã¬ã¤ãã³ã°ããå ´åãAJAX XMLHâ¦
background.jsã«ã³ã¼ããè¨è¿°ãã¦çµäº åè http://dev.classmethod.jp/ria/google-chrome-extension-7/
åèURLã¯ã¡ãã£ã¨ã¹ãã¼ããããªãã®ã§ä¿®æ£ å¿åé¢æ°ã«ããå¿ è¦ã¯ãªãã®ã§ function notify(){ // ... } notify(); setInterval(notify,60*1000); å¿åé¢æ°åãããªã var notify = function(){ // ... } notify(); setInterval(notify,60*1000); ããããâ¦
chromeæ¡å¼µã§ãã¼ã¿ãä¿åããæ¹æ³ã¨ãã¦ã¯2ã¤ãã html5ã®locatStorageã使ãæ¹æ³ã¨chrome extentionã®APIã§ããchrome.storageã使ãæ¹æ³ããããhtml5ã®locatStorageã使ãæ¹æ³ã¯ãæ®éã«localStorageã使ãã ããªã®ã§ç°¡åã ãããµã¤ãã§ä½¿ç¨ãã¦ããå ´åâ¦
javascriptã§ç¾å¨ã®æ¥ä»ã»æå»ãY/m/d H:i:så½¢å¼ã§è¡¨ç¤ºããphpã ã¨é¢æ°1ã¤ã§çµããã ããjavascriptã ã¨ä»¥å¤ã¨ããã©ãããã ãã¤ãããã£ã¦åºã¦ãããµã³ãã«ã0åãããã¦ãªãã£ããã¨ãå®å ¨ãããªãã®ã§ãåå¿é²ã¨ãã¦ããã«ã¡ã¢ãã¦ãããjavascriptã ã¨â¦
ãã¹ãåããIPã¢ãã¬ã¹ãè¦ã¤ããæ¹æ³ ãã¤ãããããã®ã§ãåå¿é²ã¨ã㦠nbtstat -R nbtstat -a lan_disk nbtstat -c