Saturday, 28 May 2011

create your own extensions in chrome-- by techno Ramayan

Here i show you how can you create your own extensions in chrome.......

first of copy this code and save it as menifest.json

  "name": "technoramayan",
  "version": "1.0",
  "description": "",
  "browser_action": {
    "default_icon": "icon.png",
    "popup": "popup.html"
  "permissions": [

now copy this code and save it as popup.html

body {
img {
  border:2px solid black;
var req = new XMLHttpRequest();
    "" +
        "" +
        "api_key=90485e931f687a9b9c2a66bf58a3861a&" +
        "text=hello%20world&" +
        "safe_search=1&" +  // 1 is "safe"
        "content_type=1&" +  // 1 is "photos only"
        "sort=relevance&" +  // another good one is "interestingness-desc"
req.onload = showPhotos;
function showPhotos() {
  var photos = req.responseXML.getElementsByTagName("photo");
  for (var i = 0, photo; photo = photos[i]; i++) {
    var img = document.createElement("image");
    img.src = constructImageURL(photo);
// See:
function constructImageURL(photo) {
  return "http://farm/" + photo.getAttribute("farm") +
      "" + photo.getAttribute("server") +
      "/" + photo.getAttribute("id") +
      "_" + photo.getAttribute("secret") +

at last select your own icon which you want to display in chrome
rename it as icon.png

put this three files including icon.png in your folder which has any name..

now open the chrome and goto

now click on + sign of developer mode

Click the Load unpacked extension button. A file dialog appears.

In the file dialog, navigate to your extension's folder and click OK.
all you done
see right side of address bar
you can find your extension..
you can do more with extensions like add links,images,some task
 for this join the group

enjoy developing your extensions......

feel free to comments......

No comments:

Post a Comment