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.
当前为
// ==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://greasyfork.org/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);