There are bunch of interesting files accessible via chrome://resources/*
using google chrome.
On linux That the content is in /opt/google/chrome/resources.pak
. I know I can get the whole sources from http://chromium.googlecode.com/svn/trunk/ but I would like to unpack the resource.pak
file.
file resources.pak
reports just junk.
Just to be clear, the question is NOT where to get those resources from. The question is what is the resources.pak file format and how to unpack it?
taken from https://groups.google.com/a/chromium.org/forum/?fromgroups=#!topic/chromium-dev/agGjTt4Dmcw
4 byte version number
4 byte number of resources
1 byte encoding
For each resource:
2 byte resource id
4 byte resource offset in file
There is an extra resource entry at the end with ID 0 giving the end of the last resource (which is essentially the length of the file)
This python module can unpack and repack files:
data_pack.py from grit-i18n
The chrome-pak-customizer (pointed out by MrU in the comments above) seems to work well to unpack Chrome's .pak
files. If you're on Windows, you can download and unzip chrome-pak.7z
from the releases page. Then drop the .pak
file on the unpack.bat
script to unpack it.
For other platforms, it looks like you'll need to build the tool from the source.