I wanted to make a transition from firefox to chrome (on windows). I managed to get all javascript buttons like ctan package and comment block to work with chrome. But.... the life line - select code button eluded me. It seems that it doesn't work with chrome. Without this button I can't migrate to chrome ( I am very serious :-|).


  1. https://tex.meta.stackexchange.com/a/891/11232
  2. Useful StackApps and other User Scripts for TeX.SX


How to get select code button in google chrome?


As per Martin Scharrer's suggestion (below), I installed Tampermonkey and installed the select_code script through Tampermonkey. Then it works.


2 Answers 2


I tested it now and it works fine for me. I installed the current version of Chrome (Version 24.0.1312.52 m) and then the Tampermonkey extension, which is apperently like Greasemonkey for Firefox. It wasn't possible to install the script directly because of the "security" settings of Chrome.

  • It works! Thanks Martin.
    – user11232
    Jan 19, 2013 at 13:27
  • You can install scripts directly by dragging the file (even from the Download Bar) to the Extensions Tab. In this instance the script really does not work although it is installed. What does Tampermonkey change? Anyway, you may add to the answer how to install the script through Tampermonkey, it is not as easy as Drag-and-Drop (I needed to paste the source into the “Edit New Script” window). Jan 19, 2013 at 20:06
  • @Qrrbrbirlbel I added the steps involved. But I don't know -- What does Tampermonkey change?
    – user11232
    Jan 20, 2013 at 2:31

I decided to make it somewhat more elaborate:

Steps to be followed:

  1. Install Tampermonkey (press Add to chrome). (Open this link in chrome) enter image description here

  2. (Go to this answer of Martin Scharrer and/or) select to install select_code script. You will be asked this:

enter image description here

Click OK

And you are done. Now you will get a select code button below the code as in:

enter image description here

Sorry, but I don't know what tampermonkey does so as to make this code work.

  • Please feel free to improve.
    – user11232
    Jan 20, 2013 at 3:52
  • I actually didn't got the pop-up in step 2. It directly installed it using tampermonkey and it worked. Jan 20, 2013 at 12:46

You must log in to answer this question.