python - Google Chrome Resources Directory

25
2014-03
  • Jacedc

    about a year ago I remember making a google-styled application with JavaScript/HTML (very basic). I went back to making a similar app but started from scratch using JavaScript/HTML5/CSS3 and Python 2.7, and as a preloader I found that you can use the chrome://resources/images/throbber.svg file directory straight from Google Chrome.

    I was wondering where this root directory is located? I am using Windows 7 Professional, Chrome version 26 and Chrome Canary version 27. I tried looking through C:/Program Files (x86)/Google/Chrome/application/VisualElements with no avail, all that is is Windows 8 Metro elements. I also tried just typing in the omnibox chrome://resources/ but it pulls an Error 2 (net::ERR_FAILED): Unknown error 404-ish page.

    I am assuming it has other UI elements, not just the throbber, so that's why I am wondering how to get to the directory so I can browse the other files.

    • Where is the file directory and how can I get to it?
    • Is the file directory protected and/or hidden so I can't get to it?
    • If the above statement is true, is there a list of GUI elements that I can type
    • manually similar to `throbber.svg`?

    Edit:

    I'll go ahead and compile (start) a list of what I already know, and anyone who can answer might finish the list?

    • chrome://resources/images/throbber.svg
    • chrome://resources/images/trash.png
    • chrome://resources/css/chrome_shared.css
    • chrome://resources/css/widgets.css
    • chrome://resources/css/list.css
  • Answers
  • Karan

    It's an embedded resource, not a file you can directly access in a folder. A query like this is easily answered - just look through the Chromium source code.

    Here's what's present under src/ui/webui/resources:


  • Related Question

    windows vista - Google Chrome warning that Javascript is disabled
  • Questioner

    I hope somebody can help. I keep getting the following message when I log on:

    Your Javascript is disabled. Limited functionality is available.

    It will stay for maybe a day sometimes two. I have uninstalled javascript and reinstalled but still the same. I am using chrome.

    Any help would be grateful many thanks Dominic My system spec is as follows

    System InformationOS Name Microsoft® Windows Vista™ Home Premium
    Version 6.0.6002 Service Pack 2 Build 6002
    Other OS Description Not Available
    OS Manufacturer Microsoft Corporation
    System Name DOM-PC
    System Manufacturer Dell Inc.
    System Model Inspiron 1545
    System Type X86-based PC
    Processor Pentium(R) Dual-Core CPU T4200 @ 2.00GHz, 2000 Mhz, 2 Core(s), 2 Logical Processor(s)
    BIOS Version/Date Dell Inc. A05, 25/02/2009
    SMBIOS Version 2.4
    Windows Directory C:\Windows
    System Directory C:\Windows\system32
    Boot Device \Device\HarddiskVolume3
    Locale United Kingdom
    Hardware Abstraction Layer Version = "6.0.6002.18005"
    User Name DOM-PC\DOM
    Time Zone GMT Standard Time
    Installed Physical Memory (RAM) 3.00 GB
    Total Physical Memory 2.96 GB
    Available Physical Memory 1.38 GB
    Total Virtual Memory 5.89 GB
    Available Virtual Memory 4.25 GB
    Page File Space 3.00 GB
    Page File C:\pagefile.sys
    My System Specs 
    

  • Related Answers
  • 8088

    I'm just going to assume JavaScript's disabled.

    (Tip: Please understand that JavaScript is not Java. The two have absolutely nothing to do with each other at all. Just like the word Chase could mean either "to pursue" or "to ornament metal", the name here is no indication whatsoever. You cannot learn to ornament metal in order to become a better runner, and likewise nothing you do with Java will fix your JavaScript problems.)

    1. Open Options (Spanner button -> Options).
    2. Go to the Under the Hood tab.
    3. Click Content Settings right at the top.
    4. Select JavaScript from the features list.
    5. Make sure it's allowed to run for all sites.
    6. Close the Content Settings and Options windows. You're done.

    Needless to say, if it was enabled to begin with, that wasn't your problem. Ensure you don't have a Chrome extension that disables JavaScript.

    State at Step 5

  • Area 51

    Try this problem with another browser and let us know if you still receive the problem.

    Update Google Chrome to latest version.