Created
May 11, 2012 15:28
-
-
Save noromanba/2660453 to your computer and use it in GitHub Desktop.
Delocalize Extension of Google Chrome on Standard OS Environment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @rem =========================================================================== | |
| @rem Delocalize Extension of Google Chrome | |
| @rem @author noromanba https://www.hatena.ne.jp/noromanba/ | |
| @rem @license MIT License http://nrm.mit-license.org/2012 | |
| @rem @see http://support.microsoft.com/kb/177665/ja over MAX_PATH (> 256 Characters) pathname handling | |
| @rem =========================================================================== | |
| @echo off | |
| pushd %~dp0 | |
| :: de fr ja zh_CN (et al. default: en) | |
| set DELOCALIZE=ja | |
| :: TODO listing for loop | |
| :: Tampermonkey | |
| set EXTENSION=dhdgffkkebhmkfjojejmpbldmpobfkfo | |
| :: Tampermonkey Beta | |
| ::set gcalenpjmijncebpfijmoaglllgpjagf | |
| set VIRTUALDRIVE=X: | |
| :: If you has %LOCALAPPDATA%, comment out below (VISTA or later) | |
| set APPDATA=%USERPROFILE%\Local Settings\Application Data% | |
| :: TODO listing for loop | |
| set GGCHROME=%APPDATA%\Google\Chrome\User Data\Default\Extensions | |
| set CHROMIUM=%APPDATA%\Chromium\User Data\Default\Extensions | |
| :: TODO loop extentions and browsers, or labeling like function | |
| subst %VIRTUALDRIVE% "%GGCHROME%\%EXTENSION%" | |
| %VIRTUALDRIVE% | |
| for /d %%d in (*) do ( | |
| if exist %%d\_locales\%DELOCALIZE% ( | |
| cd %%d\_locales | |
| move %DELOCALIZE% %DELOCALIZE%.disabled | |
| ) | |
| ) | |
| subst %VIRTUALDRIVE% /d | |
| popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment