How To Install Script In Chrome
The best thing to do is to install the Tampermonkey extension.
This will allow you to easily install Greasemonkey scripts, and to easily manage them. Also it makes it easier to install userscripts directly from sites like OpenUserJS, MonkeyGuts, etc.
Finally, information technology unlocks most all of the GM functionality that you don't get by installing a GM script direct with Chrome. That is, more of what GM on Firefox can do, is available with Tampermonkey.
But, if you really desire to install a GM script directly, it's easy a right pain on Chrome these days...
Chrome Later about August, 2022:
You lot can nevertheless drag a file to the extensions folio and it will work... Until you restart Chrome. Then it volition exist permanently disabled. See Continuing to "protect" Chrome users from malicious extensions for more information. Over again, Tampermonkey is the smart way to go. (Or switch browsers altogether to Opera or Firefox.)
Chrome 21+ :
Chrome is changing the fashion extensions are installed. Userscripts are pared-downwardly extensions on Chrome but. Starting in Chrome 21, link-click behavior is disabled for userscripts. To install a user script, drag the **.user.js* file into the Extensions page (chrome://extensions in the address input).
Older Chrome versions:
Merely elevate your **.user.js* files into any Chrome window. Or click on any Greasemonkey script-link.
You lot'll get an installation alert:
Click Continue.
You'll get a confirmation dialog:
Click Add.
Notes:
- Scripts installed this way have limitations compared to a Greasemonkey (Firefox) script or a Tampermonkey script. See Cross-browser user-scripting, Chrome section.
Controlling the Script and proper noun:
By default, Chrome installs scripts in the Extensions folder1, full of cryptic names and version numbers. And, if you lot endeavour to manually add together a script under this folder tree, it will exist wiped the next time Chrome restarts.
To control the directories and filenames to something more meaningful, you can:
-
Create a directory that's convenient to you, and not where Chrome normally looks for extensions. For example, Create:
C:\MyChromeScripts\. -
For each script create its ain subdirectory. For example,
HelloWorld. -
In that subdirectory, create or copy the script file. For example, Relieve this question's lawmaking as:
HelloWorld.user.js. -
Y'all must too create a manifest file in that subdirectory, information technology must be named:
manifest.json.For our example, it should incorporate:
{ "manifest_version": 2, "content_scripts": [ { "exclude_globs": [ ], "include_globs": [ "*" ], "js": [ "HelloWorld.user.js" ], "matches": [ "https://stackoverflow.com/*", "https://stackoverflow.com/*" ], "run_at": "document_end" } ], "converted_from_user_script": truthful, "description": "My first sensibly named script!", "name": "Hello Globe", "version": "1" }The
manifest.jsonfile is automatically generated from the meta-block by Chrome, when an user script is installed. The values of@includeand@excludemeta-rules are stored ininclude_globsandexclude_globs,@match(recommended) is stored in thematcheslist."converted_from_user_script": trueis required if you desire to utilize whatever of the supportedGM_*methods. -
At present, in Chrome's Extension director (URL = chrome://extensions/), Expand "Programmer fashion".
-
Click the Load unpacked extension... push.
-
For the folder, paste in the binder for your script, In this example it is:
C:\MyChromeScripts\HelloWorld. -
Your script is now installed, and operational!
-
If you make whatsoever changes to the script source, hit the Reload link for them to take effect:
one The folder defaults to:
Windows XP: Chrome : %AppData%\..\Local Settings\Awarding Information\Google\Chrome\User Data\Default\Extensions\ Chromium: %AppData%\..\Local Settings\Application Data\Chromium\User Information\Default\Extensions\ Windows Vista/7/8: Chrome : %LocalAppData%\Google\Chrome\User Data\Default\Extensions\ Chromium: %LocalAppData%\Chromium\User Data\Default\Extensions\ Linux: Chrome : ~/.config/google-chrome/Default/Extensions/ Chromium: ~/.config/chromium/Default/Extensions/ Mac OS X: Chrome : ~/Library/Awarding Support/Google/Chrome/Default/Extensions/ Chromium: ~/Library/Application Back up/Chromium/Default/Extensions/
Although you can modify it by running Chrome with the --user-information-dir= option.
Source: https://stackoverflow.com/questions/5258989/manually-adding-a-userscript-to-google-chrome
Posted by: daleycoloody.blogspot.com

0 Response to "How To Install Script In Chrome"
Post a Comment