KissAnime Default Server

Sets KissAnime player to beta server.

  1. // ==UserScript==
  2. // @name KissAnime Default Server
  3. // @namespace KissAnimePlayer
  4. // @description Sets KissAnime player to beta server.
  5. // @include *kissanime.ru*
  6. // @run-at document-start
  7. // @icon http://kissanime.ru/Content/images/favicon.ico
  8. // @version 2.1
  9. // @author /u/HMS_Dreadnought
  10. // @description Automatically sets the Beta server as default and also fixes the issue of the beta server player retrying when loading the video at the start.
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. function ChangeUrl() {
  15. if(window.location.href.indexOf("&s=default") > -1) {
  16. window.stop();
  17. var updateLink = '&s=beta&pfail=1';
  18. var currentLink = window.location.href;
  19. currentLink = currentLink.replace('&s=default', updateLink);
  20. location.replace(currentLink);
  21. }
  22. }
  23.  
  24. ChangeUrl();