[2021] Inspire Planner Better colour highlights for SF.com

This makes inspire planner on salesforce.com highlight the project name in red

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         [2021] Inspire Planner Better colour highlights for SF.com
// @version      1.5
// @description  This makes inspire planner on salesforce.com highlight the project name in red
// @description  GL with this script
// @author       AshAlliants
// @match        /^https?://*.lightning\.force\.com/
// @match        https://alliants.lightning.force.com
// @match        https://alliants.my.salesforce.com
// @include      /^https?://*.\.lightning\.force\.com/lightning/n/inspire1__TimeTracker_lightning.*$/
// @include      https://alliants.lightning.force.com/lightning/n/inspire1__TimeTracker_lightning
// @include      https://alliants.my.salesforce.com/_ui/identity/verification/method/TotpVerificationUi/e
// @namespace https://greasyfork.org/users/777108
// ==/UserScript==

if (document.location.host.indexOf(".lightning.force.com") != -1 && window.location.pathname.indexOf("TimeTracker") !== -1) {
    var style = document.createElement('style');
    style.innerHTML = `
      .weekly-timelog-row > td > div:nth-child(1) > span {
          font-weight: normal;
      }
      .weekly-timelog-row > td > div:nth-child(3) {
          font-weight: bold;
          color: red;
      }
      table.slds-table td:nth-child(2), table.slds-table td:nth-child(8) {
          display: none;
      }
    `;
    document.head.appendChild(style);
}
if (document.location.host.indexOf("alliants.my.salesforce.com") != -1 && window.location.pathname.indexOf("identity/verification") !== -1) {
    var mfaBox = document.getElementById("tc");
    if (mfaBox) {
        mfaBox.focus();
    }
}