NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Shush Next Episode // @namespace http://skogmo.me/ // @version 1.0 // @description Adds a link to the bottom of the player that points to the next episode // @author Henrik O. Skogmo // @match http://www.shush.se/index.php?id=*&show=* // @grant none // @require http://code.jquery.com/jquery-latest.js // ==/UserScript== /* Get link for current show */ var showLink = window.location.href; /* Get ID for current episode */ var regex = /id=(.*)&/g; var match = regex.exec(showLink); /* Increment show ID by 1 */ var newInt = parseInt(match[1])+1; var nextShowLink = showLink.replace(/id=(.*)&/g, 'id='+newInt+'&'); $('.playernav').append('<b><a href="'+nextShowLink+'">NEXT EPISODE</a></b>');