Palimas.tv fixed

Fix links on Palimas.tv

  1. // ==UserScript==
  2. // @name Palimas.tv fixed
  3. // @namespace https://palimas.tv/
  4. // @version 1.0
  5. // @description Fix links on Palimas.tv
  6. // @author whatever
  7. // @match https://palimas.tv/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. const links = document.querySelectorAll("a");
  13. for (let link of links.entries()) {
  14. if (link[1].onclick) {
  15. const url = link[1]
  16. .getAttribute("onclick")
  17. .replace("window.open('", "https://palimas.tv/")
  18. .replace("');", "");
  19. link[1].setAttribute("href", url);
  20. }
  21. }
  22. })();
  23.