분류 전체보기 검색 결과

178개 발견
  1. 2015.05.02 - mr.november11

    CLD

  2. 2015.05.02 - mr.november11

    Event Page Example

  3. 2015.05.02 - mr.november11

    A browser action with a popup that changes the page color

  4. 2015.05.02 - mr.november11

    A browser action which changes its icon when clicked

  5. 2015.05.01 - mr.november11

    [ebay]소니 블루투스 스피커 SRS-X5

  6. 2015.05.01 - mr.november11

    [GNC] 아르긴맥스, 메가맨 원데일리, 번60

  7. 2015.04.29 - mr.november11

    Print this page

  8. 2015.04.29 - mr.november11

    AIR JORDAN6 Sport Blue : 조던6 스포츠블루

CLD

2015. 5. 2. 17:08 - mr.november11


Chrome Extension Sample page 소스분석

https://developer.chrome.com/extensions/samples

CLD

Displays the language of a tab


1. 프로그램 설명

현재 active 상태입 탭의 language를 읽어들어 browser action 아이콘에 반영하여 보여준다. 

탭 이동 이벤트를 인식한 후 language 를 읽어들이는 코드가 핵심이다.

2. 소스코드 설명

manifest.json

탭 페이지에 직접적으로 관여하지 않는 프로그램 이기 때문에 별도의 권한은 필요하지 않다.

{
  "name": "CLD",
  "description": "Displays the language of a tab",
  "version": "0.3",
  "background": {
    "scripts": ["background.js"]
  },
  "browser_action": {
      "default_name": "Page Language"
  },
  "manifest_version": 2
}


background.js

탭 이동이 발생할 수 있는 3가지 이벤트( onUpdated, onSelectionChanged, query({active: true, currentWindow: true} ) 에 각각 refreshLanguage를 등록했다.

chrome.tabs.detectLanguage(integer tabId, function callback)

함수를 사용하여 현재 탭의 primary language 값을 없어온다.

callback 함수 매개변수로 아래 코드를 등록하여 language 를 얻어온 후 실행될 동작을 정의했다.
{
    console.log(language);
    if (language == " invalid_language_code")
      language = "???";
    chrome.browserAction.setBadgeText({"text": language, tabId: selectedId});
  }
 chrome.browserAction.setBadgeText 함수를 사용하면 browser action 아이콘을 별도로 생성하지 않고 text를 입력할 수 있다.


// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

var selectedId = -1;
function refreshLanguage() {
  chrome.tabs.detectLanguage(null, function(language) {
    console.log(language);
    if (language == " invalid_language_code")
      language = "???";
    chrome.browserAction.setBadgeText({"text": language, tabId: selectedId});
  });
}

chrome.tabs.onUpdated.addListener(function(tabId, props) {
  if (props.status == "complete" && tabId == selectedId)
    refreshLanguage();
});

chrome.tabs.onSelectionChanged.addListener(function(tabId, props) {
  selectedId = tabId;
  refreshLanguage();
});

chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
  selectedId = tabs[0].id;
  refreshLanguage();
});


다른 카테고리의 글 목록

카테고리 없음 카테고리의 포스트를 톺아봅니다

Event Page Example

2015. 5. 2. 16:55 - mr.november11

[크롬 익스텐션 개발하기]

Chrome Extension Sample page 소스분석

https://developer.chrome.com/extensions/samples


manifest.json

해당 프로그램의 permission을 알람, 탭, 북마크, web requset 로 선언

Ctrl+Shift+K가 눌렸을 시 browser action을 실행하도록 설정한다.

MAX OS의 경우 Ctrl 대신 Command 버튼을 선택하면 된다.

{
  "name": "Event Page Example",
  "description": "Demonstrates usage and features of the event page",
  "version": "1.0",
  "manifest_version": 2,
  "permissions": ["alarms", "tabs", "bookmarks", "declarativeWebRequest", "*://*/*"],
  "background": {
    "scripts": ["background.js"],
    "persistent": false
  },
  "browser_action": {
    "default_icon" : "icon.png",
    "default_title": "Start Event Page"
  },
  "commands": {
    "open-google": {
      "description": "Open a tab to google.com",
      "suggested_key": { "default": "Ctrl+Shift+L" }
    },
    "_execute_browser_action": {
      "suggested_key": { "default": "Ctrl+Shift+K" }
    }
  }
}

background.js


// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Global variables only exist for the life of the page, so they get reset
// each time the page is unloaded.
var counter = 1;

var lastTabId = -1;
function sendMessage() {
  chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
    lastTabId = tabs[0].id;
    chrome.tabs.sendMessage(lastTabId, "Background page started.");
  });
}

sendMessage();
chrome.browserAction.setBadgeText({text: "ON"});
console.log("Loaded.");

chrome.runtime.onInstalled.addListener(function() {
  console.log("Installed.");

  // localStorage is persisted, so it's a good place to keep state that you
  // need to persist across page reloads.
  localStorage.counter = 1;

  // Register a webRequest rule to redirect bing to google.
  var wr = chrome.declarativeWebRequest;
  chrome.declarativeWebRequest.onRequest.addRules([{
    id: "0",
    conditions: [new wr.RequestMatcher({url: {hostSuffix: "bing.com"}})],
    actions: [new wr.RedirectRequest({redirectUrl: "http://google.com"})]
  }]);
});

chrome.bookmarks.onRemoved.addListener(function(id, info) {
  alert("I never liked that site anyway.");
});

chrome.browserAction.onClicked.addListener(function() {
  // The event page will unload after handling this event (assuming nothing
  // else is keeping it awake). The content script will become the main way to
  // interact with us.
  chrome.tabs.create({url: "http://google.com"}, function(tab) {
    chrome.tabs.executeScript(tab.id, {file: "content.js"}, function() {
      // Note: we also sent a message above, upon loading the event page,
      // but the content script will not be loaded at that point, so we send
      // another here.
      sendMessage();
    });
  });
});

chrome.commands.onCommand.addListener(function(command) {
  chrome.tabs.create({url: "http://www.google.com/"});
});

chrome.runtime.onMessage.addListener(function(msg, _, sendResponse) {
  if (msg.setAlarm) {
    // For testing only.  delayInMinutes will be rounded up to at least 1 in a
    // packed or released extension.
    chrome.alarms.create({delayInMinutes: 0.1});
  } else if (msg.delayedResponse) {
    // Note: setTimeout itself does NOT keep the page awake. We return true
    // from the onMessage event handler, which keeps the message channel open -
    // in turn keeping the event page awake - until we call sendResponse.
    setTimeout(function() {
      sendResponse("Got your message.");
    }, 5000);
    return true;
  } else if (msg.getCounters) {
    sendResponse({counter: counter++,
                  persistentCounter: localStorage.counter++});
  }
  // If we don't return anything, the message channel will close, regardless
  // of whether we called sendResponse.
});

chrome.alarms.onAlarm.addListener(function() {
  alert("Time's up!");
});

chrome.runtime.onSuspend.addListener(function() {
  chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
    // After the unload event listener runs, the page will unload, so any
    // asynchronous callbacks will not fire.
    alert("This does not show up.");
  });
  console.log("Unloading.");
  chrome.browserAction.setBadgeText({text: ""});
  chrome.tabs.sendMessage(lastTabId, "Background page unloaded.");
});


'Chrome Extension' 카테고리의 다른 글

A browser action with a popup that changes the page color  (0) 2015.05.02
A browser action which changes its icon when clicked  (0) 2015.05.02
Print this page  (0) 2015.04.29
Page Redder  (0) 2015.04.21
My Bookmarks  (1) 2015.04.20

다른 카테고리의 글 목록

Chrome Extension 카테고리의 포스트를 톺아봅니다

[크롬 익스텐션 개발하기]

Chrome Extension Sample page 소스분석

https://developer.chrome.com/extensions/samples


A browser action with a popup that changes the page color

Change the current page color
SOURCE FILES:
1. 프로그램 설명 
이번 코드는 page redder의 응용 버전이다.
browser action 클릭 후 popup에서 색상을 입력받아 현재 활성화된 페이지의 background color로 설정한다.


2. 소스코드 설명

manifest에서는 현재 활성화된 tab에 대한 수정이 이루어 지기 때문에 tab에 대한 permission을 추가해야한다. 

추가로 popup.html 을 browser action 에 대한 이벤트로 추가한다.

관련 javascript가 저장된 js 파일은 popup.html에서 로드한다. 

manifest.json

{

  "name": "A browser action with a popup that changes the page color",

  "description": "Change the current page color",

  "version": "1.0",

  "permissions": [

    "tabs", "http://*/*", "https://*/*"

  ],

  "browser_action": {

      "default_title": "Set this page's color.",

      "default_icon": "icon.png",

      "default_popup": "popup.html"

  },

  "manifest_version": 2

}

popup.html

popup.html 은 코드가 긴 듯 하지만 실제 ui 코드는 div 로 버튼의 이름이 적힌 사각형 네 줄이 전부다.

이외에는 css설정이 직접 들어가 있다.

popup.js.를 호출한다.

<!doctype html>

<html>

  <head>

    <title>Set Page Color Popup</title>

    <style>

    body {

      overflow: hidden;

      margin: 0px;

      padding: 0px;

      background: white;

    }


    div:first-child {

      margin-top: 0px;

    }


    div {

      cursor: pointer;

      text-align: center;

      padding: 1px 3px;

      font-family: sans-serif;

      font-size: 0.8em;

      width: 100px;

      margin-top: 1px;

      background: #cccccc;

    }

    div:hover {

      background: #aaaaaa;

    }

    #red {

      border: 1px solid red;

      color: red;

    }

    #blue {

      border: 1px solid blue;

      color: blue;

    }

    #green {

      border: 1px solid green;

      color: green;

    }

    #yellow {

      border: 1px solid yellow;

      color: yellow;

    }

    </style>

    <script src="popup.js"></script>

  </head>

  <body>

    <div id="red">red</div>

    <div id="blue">blue</div>

    <div id="green">green</div>

    <div id="yellow">yellow</div>

  </body>

</html>


popup.js

document.addEventListener에서 버튼 색상 div들에 대해서 array화 한 후 각 div에 대한 event listener를 등록한다.
이후 div를 클릭할때마다 각자 등록된 click함후가 호출된다.
tab의 background 색상 변경은 page redder와 마찬가지도 executeScript 함수를 사용한다.
변경될 색상은 이전 popup.html 의 div의 id로 지정해놓은 값을 참조한다.


// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
function click(e) {
  chrome.tabs.executeScript(null,
      {code:"document.body.style.backgroundColor='" + e.target.id + "'"});
  window.close();
}

document.addEventListener('DOMContentLoaded', function () {
  var divs = document.querySelectorAll('div');
  for (var i = 0; i < divs.length; i++) {
    divs[i].addEventListener('click', click);
  }
});









'Chrome Extension' 카테고리의 다른 글

Event Page Example  (0) 2015.05.02
A browser action which changes its icon when clicked  (0) 2015.05.02
Print this page  (0) 2015.04.29
Page Redder  (0) 2015.04.21
My Bookmarks  (1) 2015.04.20

다른 카테고리의 글 목록

Chrome Extension 카테고리의 포스트를 톺아봅니다

A browser action which changes its icon when clicked

2015. 5. 2. 15:04 - mr.november11

[크롬 익스텐션 개발하기]

Chrome Extension Sample page 소스분석

https://developer.chrome.com/extensions/samples


A browser action which changes its icon when clicked

Change browser action color when its icon is clicked

SOURCE FILES:
1. 프로그램 설명 
오른쪽 상단의 extension 버튼을 클릭하면 아이콘의 색상이 변경된다. 
extension의  현재 동작 상태를 표현하고자 할떄 응용하면 된다.


2. 소스코드 설명

manifest.json
background.js 설정 이외에는 없다.
browser action 아이콘만 변경 되기 때문에 별도의 권한 설정이 필요 없다.
{
  "name": "A browser action which changes its icon when clicked",
  "description": "Change browser action color when its icon is clicked",
  "version": "1.2",
  "background": { "scripts": ["background.js"] },
  "browser_action": {
      "name": "Click to change the icon's color"
  },
  "manifest_version": 2
}
background.js
chrome.browserAction.setIcon 함수를 사용하여 아이콘의 path를 변경한다.
별도의 icon refresh 함수를 사용하지 않아도 자동으로 화면에서 변경된다.

// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

var min = 1;
var max = 5;
var current = min;

function updateIcon() {
  chrome.browserAction.setIcon({path:"icon" + current + ".png"});
  current++;

  if (current > max)
    current = min;
}

chrome.browserAction.onClicked.addListener(updateIcon);
updateIcon();





'Chrome Extension' 카테고리의 다른 글

Event Page Example  (0) 2015.05.02
A browser action with a popup that changes the page color  (0) 2015.05.02
Print this page  (0) 2015.04.29
Page Redder  (0) 2015.04.21
My Bookmarks  (1) 2015.04.20

다른 카테고리의 글 목록

Chrome Extension 카테고리의 포스트를 톺아봅니다

[ebay]소니 블루투스 스피커 SRS-X5

2015. 5. 1. 15:43 - mr.november11

[ebay]소니 블루투스 스피커 SRS-X5

Sony SRS-X5 Portable NFC Bluetooth Speaker Manufacturer refurbished

ebay에서 판매하는 소니 블루투스 스피커 SRS-X5 구입!

Secondipity 유명 판매자에게 구입했다.

구입 가격은 $76 배송대행 비용은 $16 달러

총 $92달러에 구입했다. 

국내 정품은 20만원정도에 판매중이다.

Secondipity 이 판매자는 리퍼제품을 많이 판매하는데 상태는 복불복이라 한다..

다행이 내가 받은 제품은 꽤 양품이었다.

외관상 흠집난 부분도 없고, 버튼동작이나 사운드도 양호!

블루투스 스피커 구입을 생각하는 사람이라면 

보스 사운드링크 미니, SRS-X5, SRS-X7을 비교하며 고민중일 것 같다.

[보스 사운드링크 미니]

보스 사운드링크 미니는 브랜드 이미지나 성능 면에서도 소니 제품보다 우수하게 알려져있다.

하지만 문제는 역시 가격 .. 

[소니 SRS-X7]

소니 SRS X7은 외관이 X5와 거의 비슷하다.

가끔씩 Secondipity 셀러로 판매되는 리퍼 가격도 $70~$80사이 수준

성능면에서는 X5 보다 상위 모델이기 때문에 좋겠지만 크기가 크기 때문에 휴대성면에서 떨어진다..

어떤 리뷰를 보면 X5 가 더 소리가 좋다는 얘기도 있다.

사운드는 개인의 취향이라 .. X5나 X7을 사도 사실 큰 차이가 없을 것이라 예상된다.


처음 배송된 구성 세트..

리퍼 제품이라 그런지 정품박스나 설명서는 없고 스피커 본체랑 어댑터만 배송됐다.

외관상 제품의 하자는 없었다.


어댑터는 110V이라 당황할 수 있다..

주변 알파문구나 철물점에서 800원짜리 돼지코를 사서 끼우면 문제 해결!

스피커 외관은 간당하다 ..검정 직사각형 육면체.. 깔끔한 인터리어에 잘 어울릴 듯


소니는 NFC를 좋아한다던데 역시 이 제품에도 NFC 기능이 탑재 되어있다.

스마트폰에 어플을 설치한 후 NFC 태그 그림 위에 휴대폰을 올려두면 자동으로 블루투스 연결이된다.

스마트폰 어플은 안드로이드 기준, 플레이 스토어에 'sony'로 검색 후 'NFC 간편 연결' 이라는 어플을 설치하면 된다.

버튼은 위와 같이 깔끔

특이점은 블루투스 전화 기능도 함께 지원하고있다





생각보다 출력이 굉장히 좋아서 방음이 약한 원룸에서는 볼륨을 최대한 줄여서 사용해야 된다.

이정도 사운드면 밖에서도 충분히 사용할 수 있을 것 같다.

다른 카테고리의 글 목록

리뷰/기타 카테고리의 포스트를 톺아봅니다

[GNC] 아르긴맥스, 메가맨 원데일리, 번60

2015. 5. 1. 14:46 - mr.november11

[GNC] 아르긴맥스, 메가맨 원데일리, 번60 

몇일 전 진행된 GNC $9.99 이벤트를 보고 바로 구매

첫 영양제 해외구매라 어떤 영양제를 사야될 지 잘 몰라서 일단은 인터넷 검색으로 아르긴맥스, 메가맨, 번60을 구입했다.

의약품의 경우 한번 구매에 최대 6통까지 통관 가능하며, 일부 품목은 통관금지이기 때문에 사전 조사가 꼭 필요하다!

페이팔로 구매해서 추가 15% 할인을 받아

6통 총 $50.96에 구입

몰테일 델라웨어로 배송대행하여 배송비 $12

총 $62에 구입했다.

한통에 만원 좀 넘는 가격인듯

영양제를 사는 건 처음인데 .. 이제 슬슬 약이 필요해지는 나이인 것 같다 ㅠ

꾸준히 복용해서 한 달 후에는 효과를 볼 수 있기를!



 [ 아르긴 맥스 ArginMax ]

아르긴 맥스의 효능은 정력강화, 혈액순환이라 한다..

정력강화 남성 성인용 영양제로 유명하지만..

멀티 비타민 및 복합 영양제로 생각하면 될 것 같다.

한 통에 90캡슐 들어있으며 복용 방법은 하루 3회 2알씩 먹으면 된다고 한다.

(하루 2회 3알씩 먹어야 된다는 정보고 있고 정확하진 않은듯)

하루 6알 복용이 권장량이니 한통으로 15일 복용가능하다.

개인적으로는 점심, 저녁식후 2알씩 복용하며 하루 4알을 복용하고있다.

비타민 포함이라 아침 빈속에 먹으면 속이 아픈듯..


정력강화제로 유명한 만큼 SEXUAL HEALTH FORMULA FOR MEN 이라 적혀있다.

스테미너가 필요한건 꼭 밤시간뿐은 아니니 .. 일상 생활용 정력으로 생각하면 좋을 듯


[ 번60 BURN60 ]

번60은 운동 보조제이다.

운동 전 30분~1시간 전에 2알을 복용하면 이후 운동에서 소모되는 칼로리양을 높여줘서 운용 효율을 증가시킨다.

부작용으로 카페인양이 많기 때문에 야밤 운동에 복용할 시 잠이 안 오는 부작용이 ...

운동하지 않는 날에는 식사 전 30분에 먹어주면 된다고 하는데 그냥 운동할 때에만 복용중이다.

한 통에 60알 들어있으니, 운동을 매일 하지 않는 이상 한 달 이상은 복용 가능하다.


[ 메가맨 원데일리 MEGA MEN One Daily]

메가맨 원데일리는 종합 비타민제로 하루에 한 알 복용하면 된다.

아르긴 맥스도 비타민 성분이라 함께 복용해도 되는지 잘 모르겠는데 ..

일단은 하루에 한 알만 복용하는 약이기 때문에 같이 먹고있다.

한 통에 60알 들어있으니 매일 먹는다고 하더라도 두 달은 먹을 수 있다. 가성비가 굉장히 좋음!



*참고 GNC 통관 가능하며 인기 많은 약품들 

(출처 : 뽐뿌)


피쉬오일 (오메가)
http://www.gnc.com/GNC-Triple-Strength-Fish-Oil-1500/product.jsp?productId=12643679

포뮬러 - 헤어 스킨 네일
http://www.gnc.com/GNC-Hair-Skin-Nails-Formula/product.jsp?productId=3943821

번 60 - (운동효과 높여줌)
http://www.gnc.com/GNC-Total-Lean-Burn-60-Cinnamon-Flavored/product.jsp?productId=2667934

아르긴맥스 (정력강화, 혈액순환)
http://www.gnc.com/GNC-ArginMax/product.jsp?productId=2133777

아르긴맥스 여성용 (정력강화 혈액순환)
http://www.gnc.com/GNC-Arginmax/product.jsp?productId=2133875

코큐 10  (노화방지, 동맥경화 개선, 고혈압, 당뇨, 심장병 도움)
http://www.gnc.com/GNC-CoQ-10-100-mg/product.jsp?productId=16120526

메가멘 원데일리 (남성 종합비타민)
http://www.gnc.com/GNC-MEGA-MEN-One-Daily/product.jsp?productId=15485606

메가멘 원데일리 50 (50세 이상 남성 종합비타민)
http://www.gnc.com/GNC-MEGA-MEN-50-Plus-One-Daily/product.jsp?productId=15485616

울트라 메가 원데일리 (여성 종합비타민)
http://www.gnc.com/GNC-Womens-ULTRA-MEGA-One-Daily/product.jsp?productId=15485626

울트라 메가 원데일리 50 (50세 이상 여성 종합비타민)
http://www.gnc.com/GNC-Womens-ULTRA-MEGA-50-Plus-One-Daily/product.jsp?productId=15485636

비타민 D (한국 사람들이 섭취를 잘 못하는 비타민 1위 - 햇빛 잘 못받으시는 분들^^;)
http://www.gnc.com/GNC-Vitamin-D-3-2000-IU/product.jsp?productId=16655136

트리플랙스 (관절건강 - 후기 중 무릎 아프신 어머님 복용 후 뛰어다니신다는.. ^^:) -어버이날 선물 긋~! ^^
http://www.gnc.com/GNC-Triflex/product.jsp?productId=4266764

달맞이꽃 ( 폐경기 증후군, 월경 증후군 )
http://www.gnc.com/GNC-Evening-Primrose-Oil-500/product.jsp?productId=2133878

유산균 (장 건강) - 250억 짜리는 세일하고 거리가 엄청 멀어서요 ^^ 9.99불 행사인 제품이 이것 뿐이네요~
*** 해당 제품은 정가가 9.99불이며 중복할인이 아니라 2개 구매시 1개 50%할인과 페이팔 15%할인이 전부입니다~참고하세용~***
http://www.gnc.com/GNC-Multi-Strain-Probiotic-Complex-1-Billion-CFUs/product.jsp?productId=24191126

칼슘 (뼈, 신경기능, 혈액응고) - 코랄 칼슘이 갑인데 해당 제품은 세일중인것이 없네요 ^^;
http://www.gnc.com/GNC-Calcium-Plus-1000/product.jsp?productId=16513196

다른 카테고리의 글 목록

리뷰/기타 카테고리의 포스트를 톺아봅니다

Print this page

2015. 4. 29. 21:45 - mr.november11

[크롬 익스텐션 개발하기]

Chrome Extension Sample page 소스분석

https://developer.chrome.com/extensions/samples


Adds a print button to the browser.

SOURCE FILES:
1. 프로그램 설명 
프린트 모양의 아이콘 클릭 시 현재 Active 상태인 탭의 print 화면이 생성된다.
프린트 화면에서 '인쇄' 버튼을 누르면 출력되는 간단한 소스
현재로서는 큰 활용 용도가 없어 보인다.
응용적 측면에서는 Active Tab 전체 페이지 인쇄가 아닌 일부 영역 선택 후 그 부분만 출력할 수 있는 기능이 있다면 좋을 것 같다.
Extension을 활용하여 프로그램 실행 시 웹 페이지 일부를 추출하고 print 함수를 사용하면 될 것 같다.


2. 소스설명

manifest.json
해당 소스는 특별한 manifest 설정이 없다.
background 소스로 background.js 파일을 링크했으며, 실행 권한을 tag과 특정 웹사이트로 한정했다.
{
  "name": "Print this page",
  "description": "Adds a print button to the browser.",
  "version": "1.1",
  "background": {
    "scripts": ["background.js"]
  },
  "permissions": [
    "tabs", "http://*/*", "https://*/*"
  ],
  "browser_action": {
      "default_title": "Print this page",
      "default_icon": "print_16x16.png"
  },
  "manifest_version": 2
}

background.js
오른쪽 상단의 프린트 버튼을 클릭했을 시 실행되야할 함수를 Listener에 추가했다.
함수 실행 시 javascript의 print 함수를 호출한다.
chrome.tabs.update함수를 사용하여 현재 active 상태인 tab 윈도우에 url로 print() 자바스크립트 함수를 실행한다.
실제 웹 주소창에 javascript:window.print(); 를 입력하면 print 페이지로 이동한다.

// Called when the user clicks on the browser action.
chrome.browserAction.onClicked.addListener(function(tab) {
  var action_url = "javascript:window.print();";
  chrome.tabs.update(tab.id, {url: action_url});
});

해당 소스 코드를 응용하여 아래와 같이 url을 변경하면
프린트 버튼을 클릭할 시 현재 active 탭에서 google.com으로 이동가능하다.
chrome.browserAction.onClicked.addListener(function(tab) {
  var action_url = "http://google.com";
  chrome.tabs.update(tab.id, {url: action_url});
});


'Chrome Extension' 카테고리의 다른 글

Event Page Example  (0) 2015.05.02
A browser action with a popup that changes the page color  (0) 2015.05.02
A browser action which changes its icon when clicked  (0) 2015.05.02
Page Redder  (0) 2015.04.21
My Bookmarks  (1) 2015.04.20

다른 카테고리의 글 목록

Chrome Extension 카테고리의 포스트를 톺아봅니다

AIR JORDAN6 Sport Blue : 조던6 스포츠블루

2015. 4. 29. 21:25 - mr.november11

[JORDAN] AIR JORDAN6 Sport Blue : 조던6 스포츠블루

인기가 많은 조던6 시리즈의 2014년 출시모델 스포츠블루다.

스포츠블루의 경우 초기 출시 당시 많은 출고 물량 때문인지 조던6 시리즈임에도 불구하고 인기가 많지 않았다.

출시 후 6개월 정도는 인기가 없어 망한줄 알았는데...

런닝맨에서 한예슬이 착용한 후 슬슬 인지도가 높아지더니, 현재는 수요가 급증했다.

2014년 당시의 경우 조던6 시리즈의 여러 컬러가 발매되어 대체품이 많았지만, 2015년에는 없었기 때문에 수요가 공급보다 많아 진 것 같다.

이런 점에서 볼 때 올해 출시한 조던11과 조던4는 좀 더 소장해볼 가치가 있다.

개인적인 리뷰 경험상 조던6 스블은 조금 밑밑한 디자인과 색상이다.

카마인의 경우 사진만 봐도 가슴이 설레는데 ...

스블의 경우 실물을 보자마자 바로 실착을 포기해버릴정도로 매력있진 않았다.


한예슬 조던6 스포츠블루 착샷


조던6 스포츠블루 리뷰샷
















다른 카테고리의 글 목록

리뷰/Jordan 카테고리의 포스트를 톺아봅니다