TheAnknown / Prehraj.to Clean Play

// ==UserScript==
// @name         Prehraj.to Clean Play
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://prehraj.to/*
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    $(document).ready(function(){
        let button = document.createElement('button');
        button.textContent = 'PLAY CLEAN';

        // styles
        button.style.outline = 'none';
        button.style.padding = '1em';
        button.style.background = '#7F7F7F';
        button.style.color = '#FFF';
        button.style.position = 'absolute';
        button.style.left = 0;
        button.style.top = 0;

        // event
        button.addEventListener('click', function(){
            let link = $("#player").find(".jw-media").children().attr('src');
            window.location = link;
        })

        document.body.appendChild(button);
    })
})();