Google Translate static toolbar

This script moves Google Translate output's toolbar (with the buttons to Copy, Listen, Share etc.) to the top. Thanks 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 static toolbar
// @name:pl         Statyczny przybornik Google Translate
// @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. Thanks to that, the toolbar position is static regardless of translation output. Useful for some things, like mouse-pos macros.
// @description:pl  Skrypt przenosi pasek narzędziowy (Kopiuj, Odsłuchaj, Udostępnij, etc.) tłumaczenia wyjściowego Google Translate na górę panelu. 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.20170926102110
// @namespace https://gf.qytechs.cn/users/153635
// ==/UserScript==
// @author          Nullmaruzero

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或关注我们的公众号极客氢云获取最新地址