Notion.so Clean Todo Lists - no strikethrough or fading

This script prevents notion from adding a strikethrough and fading checked off items in a todo list.

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
// ==UserScript==
// @name Notion.so Clean Todo Lists - no strikethrough or fading
// @description This script prevents notion from adding a strikethrough and fading checked off items in a todo list.
// @namespace Violentmonkey Scripts
// @match https://www.notion.so/*
// @grant none
// @version 1.1.0
// @license AGPLv3
// ==/UserScript==
//

function restyleCheckedTodos(elements){
  elements.forEach((e) => {
    if( (e.style.textDecoration == 'line-through rgb(127, 127, 127)' && e.style.color == 'rgba(255, 255, 255, 0.46)')
         || (e.style.textDecoration == 'line-through rgba(55, 53, 47, 0.25)' && e.style.color == 'rgb(115, 114, 110)') ){
      e.style.textDecoration = 'none';
      e.style.color = '';
    }
  });
}

let config = {
  attributes: true,
  attributeFilter: ["style"],
  childList: true,
  subtree: true
};

let observer = new MutationObserver((mutationsList, observer) => {
	// Any elements recently added or edited.
	restyleCheckedTodos(mutationsList.map((m) => m.target));
	// Anything that was missed by the above.
    restyleCheckedTodos(document.querySelectorAll("[contenteditable]"));
});

observer.observe(document, config);