您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows the embedded Google Tasks page on an own page
当前为
// ==UserScript== // @name Make Google Tasks Great Again // @author CennoxX // @contact [email protected] // @namespace https://gf.qytechs.cn/users/21515 // @description Shows the embedded Google Tasks page on an own page // @version 0.3 // @match https://tasks.google.com/embed/?origin=https://mail.google.com // @match https://tasks.google.com/embed/list/~default // @match https://gsuite.google.com/learning-center/products/apps/keep-track-of-tasks/* // @grant GM.addStyle // @license MIT // ==/UserScript== (function() { 'use strict'; //redirect to correct page if (document.URL == "https://gsuite.google.com/learning-center/products/apps/keep-track-of-tasks/#!/" || (document.URL == "https://tasks.google.com/embed/list/~default" && document.title == "Error 404 (Nicht gefunden)!!1")) { window.location.replace("https://tasks.google.com/embed/?origin=https://mail.google.com"); } else { GM.addStyle(".EIlDfe{display:inherit!important}");//display body GM.addStyle(".CTxcDf{width:100%}");//add task full width GM.addStyle(".oXBvod{width:100%}");//done tasks full width GM.addStyle(".Sze5Fc{width:100%}");//done tasks full width GM.addStyle(".G4zhSc{width:35%}");//left column width 35 % GM.addStyle(".llhEMd{left:auto;width:65%}");//right column width 65%, not till the left border of the page document.querySelector("div[data-tooltip='Tasks schließen']").style = "display: none"; // hide right close button var mainLoop = setInterval(function(){ //hide task if it is closed var closeButton = document.querySelectorAll("div[data-tooltip='Tasks schließen']"); if (closeButton[1] && typeof closeButton[1].onclick != "function"){ closeButton[1].addEventListener("click", function(){document.querySelector("div[data-tooltip='Zurück']").click();}); } //hide task if another one is opened var tasks = document.getElementsByClassName('llhEMd iWO5td'); if (tasks[1]){ document.getElementById('yDmH0d').removeChild(tasks[0]); } }, 500); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址