Is there an extension for selecting a specific exit node country in the Tor browser, without the need to edit config files manually?
My original post:
TLDR;
Not an extension and this is for Windows. I’m sure some smart Linux guy could convert this to Linux.
You make a batch file to first spit out a torrc file to use with the exit node of choice then start the Firefox browser with whatever is in your shortcut on the desktop. This batch file can be as simple or sophisticated as you want.
First make a copy of the current torrc file without exitnode as torrcCOPY (Remember, this is Windows. Case is not sensitive in filenames and commands. It’s just to make things more readable.)
I’m assuming a standard Tor browser installation for Windows. If not then you must adjust the full path names below to match what you have.
Change YOURnameHERE
You have to know your 2 character country codes. I have made this for only 1.
If you want to be able to specify the full range of the possible torrc syntax then you must modify the script yourself.
I have no idea what happens if you use an invalid code like XX. I have no idea if they are case sensitive or be mixed case. I use lower case.
The script is saved wherever you want with whatever name you want and the extension of .bat or .cmd
@echo off
copy "C:\Users\YOURnameHERE\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\torrcCOPY" "C:\Users\YOURnameHERE\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\torrc" >NUL
setlocal
SET /P CC=Enter 2 Character Country Code:
if .%CC% == . GOTO none
echo ExitNodes {%CC%} >>"C:\Users\YOURnameHERE\Desktop\Tor Browser\Browser\TorBrowser\Data\Tor\torrc"
:none
endlocal
"C:\Users\YOURnameHERE\Desktop\Tor Browser\Browser\firefox.exe"
DISCLAIMER: Supplied as is. Tested and works for me.
My original post above had the double quotes in the script converted to the curly ones so a copy and paste would not have worked.