raymond.cc View All

Load raymond.cc multipage blogs in one page

  1. // ==UserScript==
  2. // @name raymond.cc View All
  3. // @namespace https://greasyfork.org/en/users/223360
  4. // @version 1.0.0
  5. // @description Load raymond.cc multipage blogs in one page
  6. // @author Zennar
  7. // @match https://www.raymond.cc/blog/*
  8. // @grant none
  9. // @icon https://www.raymond.cc/favicon.ico
  10. // @run-at document-end
  11. // ==/UserScript==
  12.  
  13.  
  14.  
  15. (function() {
  16. 'use strict';
  17. var url=document.location.href;
  18. if(url.substr(url.length-1,1)=="/"){
  19. url=url.substr(0,url.length-1);
  20. }
  21. var sp=url.split("/")
  22. if(sp[sp.length-1].toLowerCase()!=="view-all"){
  23. url=url+"/view-all"
  24. document.location.href=url;
  25. }
  26.  
  27. })();