您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Google Calendar Web Material event flairs
当前为
// ==UserScript== // @author Balázs Orbán ([email protected]) // @name Google Calendar Web Material // @description Google Calendar Web Material event flairs // @match https://calendar.google.com/* // @version 1.0 // @namespace https://greasyfork.org/users/39251 // ==/UserScript== var event_flair =[ ["Work out", "Work", "url(https://goo.gl/6uktJo)"], ["Matematikk","Fysikk","url(https://goo.gl/PW8YmH)"], ["code","programming","url(https://goo.gl/uIiBCo)"], ["Run","jog","url(https://goo.gl/H7KTYU)"], ["Clean","wash","url(https://goo.gl/2A76Xn)"], ["Spanish","German","url(https://goo.gl/z1fy1s)"], ["Photography","photo","url(https://goo.gl/7LjvkO)"] ]; var select=document.querySelectorAll('.chip dd, .cbrdcc'); for (i = 0; i < select.length; i++) { compareFunction = function(e) { return select[i].innerText.indexOf(e) !== -1; }; for (j = 0; j < event_flair.length; j++){ if (event_flair[j].filter(compareFunction).length) { select[i].style.backgroundImage = event_flair[j][event_flair[j].length-1]; //TESTING//console.log(event_flair[j][0] + " " + event_flair[j][event_flair[j].length-1]); } } };