SharePoint List / Library ID In List / Library Settings

07/10/2024, 22:38:20

  1. // ==UserScript==
  2. // @name SharePoint List / Library ID In List / Library Settings
  3. // @namespace Eliot Cole Scripts
  4. // @match https://*.sharepoint.com/sites/*/_layouts/15/listedit.aspx*
  5. // @grant none
  6. // @license MIT
  7. // @version 1.0
  8. // @author Eliot Cole
  9. // @description 07/10/2024, 22:38:20
  10. // @require https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js
  11. // ==/UserScript==
  12.  
  13. var DaListId = unsafeWindow._spPageContextInfo.listId.slice(1,-1);
  14. console.log('Bongobongo: '+DaListId);
  15.  
  16. $('table#idItemHoverTable > tbody > tr:first-of-type').after('<tr><th scope="row" nowrap="nowrap" valign="top" id="500">ID:</th><td valign="top">'+DaListId+'</td></tr>');