How to Fix Google Chrome

Published on December 2016 | Categories: Documents | Downloads: 26 | Comments: 0 | Views: 258
of 8
Download PDF   Embed   Report

Comments

Content

wood-floor Style

How to Fi x Googl e Chrome
C h r o m e i s s o g o o d , i t s h o u l d n ’ t b e a n n o yi n g !
© 2012 by KV5R. Rev. July 24, 2012.

Men u Home Articles Cameras, Video, Audio Computers Solid-State Drive Migration, Installation Fix Google Chrome Video Review: CMStorm Keyboard Upgrade Your Browser Browser Bugs Cleaning Windows Setting up a LAN Blinking Tooltips Keyboard Problems Thunderbird: Paste Without Formatting fix Web Development Ham Radio Homemade Bread Homemade Soap Linux Christianity Classic Books My Brochure Search

Chrome is great and I love it. But there’s a few things that I, and lots of other people, don’t like. I’ll cover some of them here. Is it legal? Yes, Chrome is built from the open source Chromium, and you can mod it if you want to. You can even get the sources and compile it from scratch if you want to, and you can distribute your modded version. But we won’t be compiling a custom Chrome replacement here, just tweaking things a bit.

Problem 1: New Tab Doesn’t Display Your Homepage
to all the stuff I use. I set Chrome to use it as my homepage upon start-up. But alas, when opening a New Tab, Chrome displays its built-in New Tab page, with all those stupid “most visited” thumbnails and other stuff I never use. I want it to open my homepage every time I open a new tab, not just upon start-up. People have been complaining about this since 2008 and apparently the Chrome crew simply refuses to make it an option. This is really pretty easy to fix. Chrome’s new page code is loaded from a resource in chrome.dll. To hack it, do this:
kv5r.com/articles/win/fix-google-chrome.asp

I

have a local custom homepage where I put links

Search

1/8

04/12/12

How to Fix Google Chrome

1. Download and install Resource Hacker (free!). 2. Locate c r m . l in the program files folder hoedl where Chrome is installed, usually c \ r g a :Porm

Fls ie

(8)Gol\hoeApiainlts.eso.ubr. x6\ogeCrm\plcto\aetvrinnme\
3. Copy it to c r m . r g d las a backup. hoeoi.l 4. Run Resource Hacker and open c r m . l . hoedl 5. Find (Ctrl-F) the text I ' i p r a t t a t i b t e f r t s r p ts motn ht hs e h is cit l a e (or very similar; they might change it in later versions). odd 6. Put this line right below the “It's important that…” line (make sure it’s above the first <script> tag): < c i t w n o . o a i n = ' t p / l c l o t ' < s r p > (replace srp>idwlcto ht:/oahs/;/cit localhost with your desired homepage URL). It forces an immediate redirect and ignores the remainder of the new tab resource. 7. Click Compile then menu File, Save c r m . l . Start Chrome and test it by hoedl opening a new tab. Notes:
kv5r.com/articles/win/fix-google-chrome.asp 2/8

04/12/12

How to Fix Google Chrome

You will have to do this again each time Google updates chrome and replaces chrome.dll, so save these instructions in a handy text file. Also in Chrome, set your homepage to New Tab (Wrench, Settings, On Startup, Open the New Tab page). Otherwise, after your mod, it will simply load it twice upon start-up. The only useful thing (IMO) on the New Tab page is Recently Closed Tabs. To restore that handy functionality, install an extension called Recently Closed Tabs.

Problem 2: You Can’t Make Chrome Put Its Cache Elsewhere (Oh yes you can!)

Y

ou just installed a brand-spanking-new solid-state drive, and you’ve read that you should try to move temp and cache files off to a hard drive (see also: my SSD Migration page). All browsers except Chrome allow you to do this from within the browser. But I found a way—in fact, I found three ways!

1. Put D iskCac he D ir o r U se rD ataD ir in the Re gistry
This easy method will move the cache location to a folder of your choice. The rest of the user profile stuff will stay where it is by default. Run it: Right-click Policies and click New and Key. Name it Google. Right-click Google and click New and Key. Name it Chrome. Click Chrome. Right-click in the right side of the screen and click New, String Value, and name it DiskCacheDir. Double-click DiskCacheDir and put in location desired. I used H \ e p C r m . You may be tempted to use an Expandable String :tm\hoe Value and put like H:\temp\Chrome\%HOMEPATH% in there—I tried it (many ways) and it just won’t work. Apparently, Chrome expects a REG_SZ data type, not a REG_EXPAND_SZ. But fascist Google Update will delete it at the next update! To stop this Nazi Google behavior: Right-click that Google key you made under Policy and choose Permissions. Notice that SYSTEM and Administrators have Full Control, and they are all grayed out, because they are Inherited. Click Advanced. Uncheck “Include Inheritable Permissions…” and click Remove on the warning box that pops up. Now all permissions are
kv5r.com/articles/win/fix-google-chrome.asp 3/8

the tree to H E _ O A _ A H N \ O T A E P l c e \ o g e C r m . If not there, create KYLCLMCIESFWR\oiisGol\hoe

regedit

and

open

up

04/12/12

How to Fix Google Chrome

removed, so you’ll have to explicitly re-create them. Click Add, Advanced, Find Now, and scroll down and click SYSTEM. Ok, Ok. Then, in the Permissions box that pops up, check to allow only “Query Value” and “Read Control”. Ok. Apply. Now repeat above but add Administrators, and Check “Full Control” and then uncheck “Delete”. Ok, Apply, Ok, Ok. Now even you can’t delete the \Google\Chrome keys, unless you give Administrators permission in the Google key! Note that only the user listed in the Owner tab can change permissions on folders, files, and registry keys. Now do all the above again, this time in

HE_URN_SRSfwr\oiisGol\hoe KYCRETUE\otaePlce\ogeCrm.
If you have multiple users, you’ll need to put the keys and value you added in HKEY_CURRENT_USER also in the HKEY_USERS trees for each S-15-SomeLongNumber (called SIDs) user trees, and set them to a different cache folder in your temp location. You can tell which SID is which user by typing w i u e a c u t g t n m , i at a command prompt. The real mc srcon e aesd human users’ SIDs will likely end in 1001, 1002, etc., and the other SIDs are for SYSTEM and such. Now, without Chrome running, go to

c\sr\orsraeApaaLclGol\hoeUe :UesYuUeNm\pDt\oa\ogeCrm\sr D t \ e a l \ a h \and delete it. aaDfutCce
Reboot, then start Chrome and go to some web page. Look in the folder you set above and make sure it’s putting its cache files there, and not in the old location. The policy settings you put in the registry cannot be overridden with Chrome’s command-line switches. Ref.: http://www.chromium.org/administrators/policy-list-3#DiskCacheDir There’s a bunch of other values you can control in the same manner; look it up. If you want to move the whole Chrome user data tree (everything in c \ s r \ o r n m \ p D t \ o a \ o g e C r m \ s r D t \ including the :Uesyu-aeApaaLclGol\hoeUe aa, cache) to another drive, do like above but name the string value UserDataDir, and set it to something besides temp, like H:\ChromeUsers. You don’t need both UserDataDir and DiskCacheDir in the registry, as UserDataDir will also relocate the cache. If you do use UserDataDir, note: This will stop all Chrome writing on your SSD except for updates.
kv5r.com/articles/win/fix-google-chrome.asp 4/8

04/12/12

How to Fix Google Chrome

After adding UserDataDir to the above reg keys (and rebooting), run Chrome and it’ll make the its default user data stuff in the path you specified, but the browser will come up like a new install. To get all your settings (bookmarks, history, etc.) into it, move all the stuff in c \ s r \ o r n m \ p D t \ o a \ o g e C r m \ s r D t \ to the new :Uesyu-aeApaaLclGol\hoeUe aa location, overwriting what Chrome put therein. Then fire up Chrome and verify all your settings, bookmarks, extensions, etc., are working. This has the disadvantages of (a) if you pull your data drive, poof! Chrome won’t work, and possibly (b) it’ll likely not work for multiple users with different profiles, since you specified in the registry that all instances of Chrome, by Windows Policy, will have Chrome User Data hard-wired to a specific drive and folder. As above, if you have multiple users, you’ll need to put the keys and value you added in HKEY_CURRENT_USER also in the HKEY_USERS trees for the other users’ SIDs. As for now, I have set (and recommend) just putting the DiskCacheDir in the registry, and keeping the rest of the user profile stuff with Chrome, on the SSD.

2. U se Co mmand Line Switc he s
You can use Chrome command line switches for anything listed that’s not in Policies\Google\Chrome in the registry (which override command line switches). Right-click the icon you use to start Chrome and select Properties. Add the --user-data-dir flag to chrome.exe, like this: c r m . x - u e hoeee -sr d t - i = : C r m - s rOR, to just relocate the cache only: aadrH\hoeUe

c r m . x - d s - a h - i = : C r m - s r. hoeee -ikccedrH\hoeUe
This method has the disadvantage of only working when you start it with that icon. Instances started by a “default browser” operation (like, clicking a link in an email) will not get the switch, unless several instances are edited in the registry to include the switch. So you’re better off just using #1 above, and making the change global. Re: http://www.chromium.org/user-experience/user-data-directory

3. Re lo c ate ALL o f Chro me to Ano the r D rive
This method is somewhat complex, but has the advantage of being portable and completely self-contained, id est, you can pull your external drive and take it with you, settings and all, and use it on another computer without leaving any traces on the host system. 1. Note: in each case below, replace H with your actual hard drive letter. :
kv5r.com/articles/win/fix-google-chrome.asp 5/8

04/12/12

How to Fix Google Chrome

2. Download and install GoogleChromePortable to the hard drive, from PortableApps.com. Don’t run it yet. 3. Look in the H \ o t b e p s G o l C r m P r a l \ folder for h l . t l :PralAp\ogehoeotbe ephm and read it. Migrate your existing profile, as it says. 4. Copy

H\otbepsGolCrmPral\te\oreGolCrmPral.n :PralAp\ogehoeotbeOhrSuc\ogehoeotbeii to H \ o t b e p s G o l C r m P r a l \ :PralAp\ogehoeotbe.
5. Open editor and look for lines R n o a l = r e and uLclytu C c e n e p t u and change them both to f l e Save and exit. ahITm=re as. it in an

6. Now run GoogleChromePortable.exe (double-click it) and look in your C\sr\oruenm\pDt\oa\ep : U e s y u - s r a e A p a a L c l T m \ and verify that no GoogleChromePortable folder exists therein. Also, make sure your profile and settings stuff in GoogleChromePortable are all as expected (homepage, bookmarks, extensions, etc). 7. Now you can completely uninstall Chrome from the SSD, using Control Panel. Your default browser will revert to Internet Explorer, but we’ll fix that later. 8. To make a handy icon, go to \PortableApps\GoogleChromePortable\, rightclick GoogleChromePortable.exe, Send to… Desktop (create shortcut), then you can use it there or drag it into the menu system or pin it to the taskbar, as desired. 9. To set it as your default browser is a little more complicated. If you make GoogleChromePortable your default browser, Chrome will use the wrong path in several places in the registry, and it simply won’t work. In that case, you need to edit the registry. Be careful, and make a restore point first, if you are new to registry editing. a. Run GoogleChromePortable and if it asks to make it your default browser, do so, else click the wrench, Settings, and make it default there. b. It will write registry entries, but they will be wrong. The entries need to point to GoogleChromePortable.exe, not \App\Chromebin\chrome.exe. c. Run and regedit and change Find it (in Data)

H\otbepsGolCrmPral\p\hoebncrm.x :PralAp\ogehoeotbeApCrm-i\hoeee
to H \ o t b e p s G o l C r m P r a l \ o g e h o e o t b e e e in :PralAp\ogehoeotbeGolCrmPral.x about 11 places.
6/8

04/12/12

How to Fix Google Chrome

Most of those keys will have - " 1 after the exe, don’t remove - %" it. The ones to change will look like:

":PralAp\ogehoeotbeApCrmH\otbepsGolCrmPral\p\hoe bncrm.x"- "1 i\hoeee - %"
Change them to look like:

":PralAp\ogehoeotbeGolCrmPral.x" H\otbepsGolCrmPral\ogehoeotbeee - "1 - %"
You can change the first one found, select and copy the changed text, then just paste it into the remaining ones. Keep hitting F3 to find the next, ’til all are found and changed. Do NOT replace the ones that say

\otbepsGolCrmPral\p\hoe PralAp\ogehoeotbeApCrmb n c r m . x , — this is a path to an icon, which is in i\hoeee0
chrome.exe, not the launcher GoogleChromePortable.exe, and you don’t need to change the icon location that Windows uses for Chrome. Lastly, open an email or something with a link in it, click it, and see if it runs GoogleChromePortable.exe, not chrome.exe. Note that the automatic Google Updater does not work with GoogleChromePortable, so check with PortableApps.com every few months to see if there is a later version there.

Fix Google Update
Google Updater is another example of Google’s heavy-handedness. It wants to check for updates ever hour! Fixing this is easy: 1. Go to Start, All Programs, Accessories, System Tools and run Task Scheduler. 2. In the left pane, click Task Scheduler Library. 3. In the right pane you’ll see two GoogleUpdateTask entries. 4. Double-click one and click the Triggers tab. 5. Double-click the trigger’s Description to open the Edit Trigger dialog box. 6. Set it to Weekly and pick a day. 7. If Repeat Task Every is checked, uncheck it. 8. To completely disable all Google Updates, uncheck Enabled at the bottom of the Edit Trigger dialog box.
kv5r.com/articles/win/fix-google-chrome.asp 7/8

04/12/12

How to Fix Google Chrome

9. Now Ok all that and then do the other one. 10. Now Google will check for updates once per week, not once per hour! 11. When it does do an update, you’ll have to fix this again. 12. If you turn updating completely off, you can make it check for updates manually by clicking the Wrench, then About Google Chrome.

Other Things
For a list of command line switches, see Chrome Switches. Interesting switches to try: --disk-cache-dir Use a specific disk cache location, rather than one derived from the UserDatadir. --disk-cache-size Forces the maximum disk space to be used by the disk cache, in bytes. --media-cache-size Forces the maximum disk space to be used by the media cache, in bytes. --disable-application-cache Disable the Application Cache. --parent-profile Specifies the path to the user data folder for the parent profile (whatever that is).

Please do not write and ask me how to ______. If it’s not on this page, I donno! Please do write if you have additional, verifiable, tested info for this page! Please say “Thanks!” by sending all your friends here and linking to my pages! —KV5R Sitemap
— KV5R is disabled. Please help. —

Copyr i ght © 2 0 0 3 –2 0 1 2 by Har ol d Me l t on. Pl e as e l i nk — do not c opy. • Bg pat t e r n by ~gnr bi s hop

8/8

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close