Google Translate toolbox fix.

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-22 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

// ==UserScript==
// @name     Google Translate toolbox fix.
// @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.
// @run-at document-end
// @version 0.0.1.20170922193839
// @namespace https://greasyfork.dpdns.org/users/153635
// ==/UserScript==

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

container.insertBefore (lastTargDiv, firstTargDiv);
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元