Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 7 of 7

This is a discussion on Get site thumbnail / favicon within the Chrome Tips & Tricks section, part of the Google Chrome category: Hey guys ! Just a little tip today I "found" and thought i'd share. If you type Code: chrome-ui://favicon/http://www.WEBPAGE.com/ in ...


  1. #1
    Kyrax is offline Senior Member
    Join Date
    Apr 2009
    Location
    Qc, Canada
    Posts
    495

    Default Get site thumbnail / favicon

    Hey guys !

    Just a little tip today I "found" and thought i'd share.

    If you type
    Code:
    chrome-ui://favicon/http://www.WEBPAGE.com/
    in your address bar (replace WEBPAGE by some site you've already been to), you can obtain the favicon of that site.

    You can also obtain a thumbnail for that page under
    Code:
    chrome-ui://thumb/http://www.WEBPAGE.com/
    While these might seem useless at first, they can be used inside scripts / extensions and plugins that you develop.

    They are used on the default new tab page (chrome-ui://newtab/)

  2. #2
    ankaling29 is offline Junior Member
    Join Date
    Sep 2009
    Posts
    1

    Default http://www.sitethumbshot.com/ thumshot services

    I thumbnail service worth trying is http://www.sitethumbshot.com/.

  3. #3
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    chrome-ui://? It's still chrome:// for me. :X (4.0.211.2)
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  4. #4
    NicholasPufal is offline Senior Member
    Join Date
    Jun 2009
    Location
    Porto Alegre, Brazil
    Posts
    109

    Default

    His post is old.

    Look the date

  5. #5
    Waha's Avatar
    Waha is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    788

    Default

    I thought about this an hour or so after I posted thinking it might be. But was like "Nah why would someone post a reply like that to an age-old 0 reply thread" ._.
    ~ Projects ~
    Specialized: Carapass Auction Watcher, Kongregate Chat
    Libraries: bliplib
    Tools: manifest syntax highlighting & snippits
    ~ Happy to make extensions for pay too ;D ~
    Portfolio: Search and Share

  6. #6
    Austin W80 is offline Junior Member
    Join Date
    Aug 2009
    Posts
    8

  7. #7
    dhanushka is offline Junior Member
    Join Date
    Sep 2009
    Posts
    9

    Default

    im using chrome://thumb/... in my extension to get the thumb of an opened page that gives the error saying that it is trying to use an local url. An example code is provided bellow.

    var Dom = {
    get: function(el){
    if (typeof el === 'string') {
    return document.getElementById(el);
    }
    else {
    return el;
    }
    },
    add: function(el){
    var el = this.get(el);
    document.body.appendChild(el);
    },
    remove: function(el){
    var el = this.get(el);
    el.parentNode.removeChild(el);
    }
    };


    var Event = {
    add: function(){
    if (window.addEventListener) {
    return function(el, type, fn){
    Dom.get(el).addEventListener(type, fn, false);
    };
    }
    else
    if (window.attachEvent) {
    return function(el, type, fn){
    var f = function(){
    fn.call(Dom.get(el), window.event);
    };
    Dom.get(el).attachEvent('on' + type, f);
    };
    }
    }()
    };






    Event.add(window, 'load', function(){
    var testImage=document.createElement("img");
    //testImage.url='chrome://thumb/file:///D:/cse%20year%203/project/data%20chromeTab/Javascript%20delay,%20javascript%20wait,%20javascript%20pause%20routine.htm';
    //testImage.setAttribute('src','file:///D:/cse%20year%203/project/data%20chromeTab/old/currently%20working/work%20with/aa/Spacegallery%20-%20jQuery%20plugin.htm');
    testImage.setAttribute('src','chrome://thumb/file:///D:/');
    //testImage.setAttribute('src','chrome://thumb/file:///D:/cse%20year%203/project/data%20chromeTab/Javascript%20delay,%20javascript%20wait,%20javascript%20pause%20routine.htm');
    //Dom.add(url('chrome://thumb/file:///D:/cse%20year%203/project/data%20chromeTab/Javascript%20delay,%20javascript%20wait,%20javascript%20pause%20routine.htm'));
    //setTimeout("addthe();", 1000);
    //Dom.add(testImage);
    //testImage.setAttribute('src','./sri lanka.jpg');
    //Dom.add(testImage);
    //function addthe(){
    //// Dom.add(testImage);
    //}
    var testImage2=document.createElement("img");
    //var testImage;
    //testImage2.url='chrome://thumb/file:///D:/';
    testImage2.setAttribute('src','chrome://thumb/file:///D:/');
    Dom.add(testImage2);
    });











    in a.js

    and in the main fest

    {
    "format_version": 1,
    "version": "1.0",
    "name": "a",
    "description": "s",
    "content_scripts": [
    {
    "run_at": "document_start",
    "matches": ["http://*/*", "file:///*", "https://*/*", "ftp://*/*"],
    "js": ["a.js"],
    "permissions": [
    "tabs", "bookmarks",
    "file:///*",
    "http://*/*",
    "https://*/*"
    ]
    }
    ]//,
    // "permissions": [
    // "tabs", "bookmarks",
    // "file:///*",
    // "http://*/*",
    // "https://*/*"
    // ]
    }
    what is the problem

Similar Threads

  1. Pictures uploaded to this site
    By Stamga in forum General Chat
    Replies: 3
    Last Post: 04-07-2009, 12:27 AM
  2. Tips from the main site
    By Chrome in forum Chrome Tips & Tricks
    Replies: 5
    Last Post: 09-10-2008, 02:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •