Google Translate toolbox fix.

This script moves Google Translate output's toolbar (with the buttons to Copy, Listen, Share etc.) to the top.\nThanks to that, the toolbar position is static regardless of translation output. Useful for some things, like mouse-pos macros.

目前为 2017-09-26 提交的版本。查看 最新版本

// ==UserScript==
// @name            Google Translate toolbox fix.
// @name:pl         Przybornik Google Translate u góry zamiast na dole.
// @include         https://translate.google.*/*
// @grant           none
// @description     This script moves Google Translate output's toolbar (with the buttons to Copy, Listen, Share etc.) to the top.\nThanks to that, the toolbar position is static regardless of translation output. Useful for some things, like mouse-pos macros.
// @description:pl  Skrypt umieszcza pasek narzędziowy (Kopiuj, Odsłuchaj, Udostępnij, etc.) tłumaczenia wyjściowego Google Translate na górę panelu.\n Dzięki temu przybornik jest statyczny, niezależnie od długości tłumaczenia. Przydatne w niektórych sytuacjach, np. tworzeniu makro używających pozycji kursora.
// @run-at          document-end
// @version 0.0.1.20170926101427
// @namespace https://gf.qytechs.cn/users/153635
// ==/UserScript==

var container   = document.querySelector ("div#gt-res-p");
var outputDiv   = container.querySelector ("div#gt-res-data");
var toolboxDiv  = container.querySelector ("div#gt-res-tools");

// Switch divs
container.insertBefore (toolboxDiv, outputDiv);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址