Advertisement
Guest User

AutoRawCrunchyroll

a guest
Jul 13th, 2018
982
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. // ==UserScript==
  2. // @name AutoRawCrunchyroll
  3. // @description adds ?ssid=0 to end of crunchyroll urls
  4. // @author /DJT/ anon
  5. // @include http://www.crunchyroll.com/*
  6. // ==/UserScript==
  7.  
  8. var links,thisLink;
  9. links = document.evaluate("//a[@href]",
  10. document,
  11. null,
  12. XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,
  13. null);
  14.  
  15. for (var i=0;i<links.snapshotLength;i++) {
  16. thisLink = links.snapshotItem(i);
  17.  
  18. thisLink.href = thisLink.href.replace(RegExp('http://www.crunchyroll.com/*'),
  19. 'http://www.crunchyroll.com/') + '?ssid=0';
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement