Kasi Player Fix

Fixes the broken flash player on pages like http://kasimp3.co.za/144116

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        Kasi Player Fix
// @namespace   [email protected]
// @include     http://kasimp3.co.za/*
// @version     1.2
// @grant       none
// @require     https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js
// @require     https://cdnjs.cloudflare.com/ajax/libs/swfobject/2.2/swfobject.min.js
// @description:en     Fixes the broken flash player on pages like http://kasimp3.co.za/144116
// @description Fixes the broken flash player on pages like http://kasimp3.co.za/144116
// ==/UserScript==

$(document).ready(function(){
	track_url = $('meta[property="og:audio"]').attr('content');

	var flashvars = {
		mp3: track_url,
		wmode: "transparent"
	};
	var params = {wmode: "transparent"};
	var attributes = {};
	var callback = function (e){};

	swfobject.embedSWF("http://kasimp3.co.za/flash/dewplayer-bubble-vol.swf", 
			   "dewplayer", 
			   "250", 
			   "65", 
			   "9", 
			   "https://cdnjs.cloudflare.com/ajax/libs/html5media/1.1.8/expressInstall.swf", 
			   flashvars, 
			   params, 
			   attributes, 
			   callback);
});