Advertisement
HMSDreadnought

KissAnime Default Server

Dec 25th, 2017
133,052
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. // @downloadURL https://pastebin.com/raw/xY82U7yt
  8. // @icon        http://kissanime.ru/Content/images/favicon.ico
  9. // @version     2.1
  10. // @author      /u/HMS_Dreadnought
  11. // @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.
  12. // @grant       none
  13. // ==/UserScript==
  14.  
  15. function ChangeUrl() {
  16.     if(window.location.href.indexOf("&s=default") > -1) {
  17.         window.stop();
  18.         var updateLink = '&s=beta&pfail=1';
  19.         var currentLink = window.location.href;
  20.         currentLink = currentLink.replace('&s=default', updateLink);
  21.         location.replace(currentLink);
  22.     }
  23. }
  24.  
  25. ChangeUrl();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement