Ubuntu 18.04
1) Became a superuser
sudo -s
2) Download and install developer packets to build gnome-terminal
apt-get build-dep gnome-terminal
3) Download and build sources for current version of gnome-terminal
cd /usr/local/src
apt-get -b source gnome-terminal
4) go to sources ( change the digits "3.28.2" in future versions )
cd gnome-terminal-3.28.2
5) Download the patch
curl https://ypokhilko.linkpc.net/wp-content/uploads/2018/12/search_on_google.patch_.gz --output search_on_google.patch.gz
6) Unzip and apply the patch
gzip -d search_on_google.patch.gz
cat search_on_google.patch | patch -p 1
7) Build solution again
make
8) Store old version of the gnome-terminal-server
mv /usr/lib/gnome-terminal/gnome-terminal-server /usr/lib/gnome-terminal/gnome-terminal-server.old
9) Copy new version instead of old
cp ./src/gnome-terminal-server /usr/lib/gnome-terminal/gnome-terminal-server
10) Kill old instance of gnome-terminal-server (current instance of gnome-terminal will closed too)
killall gnome-terminal-server
11) Run gnome-terminal and enjoy