Comment #35 on issue 567 by gokdogan: Remember zoom ratio on a site basis
http://code.google.com/p/chromium/issues/detail?id=567

It has been a while since the first submission of the request. It seems  
like no body cares about out there. I am bored
waiting for an official response.
Those who does not want wait for the development of this feature for an  
indefinite time, here is a workaround for
defining a default zoom level (applicable to Chrome beta releases):

Step 1. Create directory called User Scripts under your user data directory:
Visa/Win7 => C:\Users\<user_name>\AppData\Local\Google\Chrome\User  
Data\Default\
WinXP => C:\Documents and Settings\<user_name>\Local Settings\Application  
Data\Google\Chrome\User Data\Default
OSX => ~/Library/Application Support/Google/Chrome/Default
Linux => ~/.config/google-chrome/Default

Step 2. Create a new text file under newly create directory with the  
following content:

// ==UserScript==
// @name          autoPage
// @description   page zoom
// @include       *
// @exclude
// ==/UserScript==
autoPage();
function autoPage(){
         var zoomLevel=150; //default zoom level, 150 means zoom level  
is %150.
         zoom(zoomLevel);
}
function zoom(level)
{
         var i = parseInt(document.body.style.zoom);
         if (isNaN(i)) i=100;
         newZoom= i * level / 100;
         document.body.style.zoom=newZoom+'%';
}


Step 3. Now you can start running chrome with the --enable-user-scripts  
flag in order to activate default zoom script.
You can change your Chrome shortcut to add this flag or create a separate  
one to use this feature on demand.

Hope it helps,

Goktug

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to