SharePoint - Enable List and Library Comments For Firefox

18/01/2024, 09:54:30

  1. // ==UserScript==
  2. // @name SharePoint - Enable List and Library Comments For Firefox
  3. // @namespace Eliot Cole Scripts
  4. // @match https://*.sharepoint.com/*
  5. // @grant none
  6. // @license MIT
  7. // @version 1.2
  8. // @author Eliot Cole
  9. // @description 18/01/2024, 09:54:30
  10. // @require https://cdn.jsdelivr.net/npm/@violentmonkey/dom@2
  11. // @require https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js
  12. // ==/UserScript==
  13.  
  14. VM.observe(document.body, () => {
  15. // Find the target node
  16. const $node = $('.od-addNewCommentTextField-mentionableTextBox');
  17.  
  18. if ($node.length) {
  19. $node.attr('contenteditable', 'true');
  20.  
  21. // disconnect observer - This is disabled as if you disconnect you cannot enter more comments
  22. // return true;
  23. }
  24. });