Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name KissAnime Beta Server Default and pfail=3
- // @namespace KissAnimePlayer
- // @include *kissanime.ru*
- // @run-at document-start
- // @icon http://kissanime.ru/Content/images/favicon.ico
- // @version 1.0
- // @author YangWenli1
- // @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. (Original at: https://pastebin.com/xY82U7yt by /u/HMS_Dreadnought)
- // @grant none
- // ==/UserScript==
- function ChangeUrlDefault() {
- if(window.location.href.indexOf("&s=default") > -1) {
- window.stop();
- var updateLink = '&s=beta&pfail=3';
- var currentLink = window.location.href;
- currentLink = currentLink.replace('&s=default', updateLink);
- location.replace(currentLink);
- }
- }
- function ChangeUrlBeta() {
- if(window.location.href.indexOf("&pfail=3") === -1) {
- if(window.location.href.indexOf("&s=beta") > -1) {
- window.stop();
- var updateLink = '&s=beta&pfail=3';
- var currentLink = window.location.href;
- currentLink = currentLink.replace('&s=beta', updateLink);
- location.replace(currentLink);
- }
- }
- }
- ChangeUrlBeta()
- ChangeUrlDefault();
Advertisement
Add Comment
Please, Sign In to add comment