您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows the current °F and °C weather temperature at the same time on google.
当前为
// ==UserScript== // @name °F+°C Weather - google // @namespace https://gf.qytechs.cn/en/users/670188-hacker09?sort=daily_installs // @version 1 // @description Shows the current °F and °C weather temperature at the same time on google. // @author hacker09 // @include *://www.google.* // @icon https://t3.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=http://www.google.com&size=64 // @run-at document-end // @grant none // @noframes // ==/UserScript== (function() { 'use strict'; var c = document.querySelectorAll('div.vk_bk.TylWce.SGNhVe > span')[0].innerText; //Save the current temperature value var f = document.querySelectorAll('div.vk_bk.TylWce.SGNhVe > span')[1].innerText; //Save the hidden temperature value document.querySelector("div.vk_bk.wob-unit").style.display = 'none'; //Hide the default °C °F google text if (document.querySelector("div.vk_bk.wob-unit > span").innerText === '°F') //If the current temperature is in °F { //Starts the if condition document.querySelector("div.vk_bk.TylWce.SGNhVe").innerText = c + '°F ' + f + '°C'; //Show °F °C } //Finishes the if condition else //If the current temperature is in °C { //Starts the else condition document.querySelector("div.vk_bk.TylWce.SGNhVe").innerText = c + '°C ' + f + '°F'; //Show °C °F } //Finishes the else condition })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址