vk.com: force Flash audio in Vivaldi/Opera
// ==UserScript== | |
// @name vk.com: force Flash audio in Vivaldi/Opera | |
// @namespace https://gist.github.com/justdanpo | |
// @version 0.1 | |
// @description vk.com: force Flash audio in Vivaldi/Opera | |
// @author den_po | |
// @include https://vk.com/* | |
// @include https://*.vk.com/* | |
// @run-at document-start | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
var vkua = navigator.userAgent.replace(/Windows NT \d+.\d+/, "Windows NT 6.1"); | |
document.documentElement.setAttribute('onreset', "navigator.__defineGetter__('userAgent', function(){ return '" + vkua.replace(/'/g, "\'") + "' });"); | |
document.documentElement.dispatchEvent(new CustomEvent('reset')); | |
document.documentElement.removeAttribute('onreset'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment