To Do list title - Canvas Instructure

Shows the full TO Do task title when you hover over it on the instructure.com dashboard of your course.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         To Do list title - Canvas Instructure
// @namespace    https://greatest.deepsurf.us/en/users/670188-hacker09?sort=daily_installs
// @version      5
// @description  Shows the full TO Do task title when you hover over it on the instructure.com dashboard of your course.
// @author       hacker09
// @match        https://*.instructure.com/*
// @icon         https://du11hjcvx0uqb.cloudfront.net/br/dist/images/favicon-e10d657a73.ico
// @run-at       document-end
// @grant        none
// ==/UserScript==

setTimeout(async function() {
  'use strict';
  document.querySelectorAll("div.ToDoSidebarItem__Title").forEach(el => el.title = el.querySelector('div > a > span').innerText); //Fully show each title on hover

  new MutationObserver(async function() { //Se uma quantidade diferente for selecionada
    document.querySelectorAll("div.ToDoSidebarItem__Title").forEach(el => el.title = el.querySelector('div > a > span').innerText); //Fully show each title on hover
  }).observe(document.querySelector("#planner-todosidebar-item-list"), { //Defines the element and the characteristics to be observed
    attributes: false,
    attributeOldValue: false,
    characterData: false,
    characterDataOldValue: false,
    childList: true,
    subtree: true
  }); //Finishes the definitions to be observed
}, 3000);