Lumendatabase - Make links clickable

Make links on Lumendatabase clickable!

  1. // ==UserScript==
  2. // @name Lumendatabase - Make links clickable
  3. // @namespace KD Script
  4. // @match https://lumendatabase.org/notices/*
  5. // @grant none
  6. // @version 1.0
  7. // @author KD
  8. // @description Make links on Lumendatabase clickable!
  9. // ==/UserScript==
  10.  
  11.  
  12.  
  13. document.querySelectorAll(".infringing_url").forEach(i=>{
  14. let data= i.textContent.split(" ");
  15. let other= data.slice(1).join(" ");
  16. let link= `<a href="http://${data[0]}">${data[0]}</a> `;
  17. i.innerHTML= link; //+ other;
  18. });
  19.  
  20.  
  21. /* Uncomment "+ other;" in the last line to
  22. see the amount of URLs on a specific domain.
  23. I personally feel it's unnecessary information */
  24.