Forked from Ant1gon/Call Details tiny fix (flash is dead).user.js
Created
January 12, 2021 07:11
-
-
Save irungentootoo/d98b43260bada0c7e6f5c91db058cd46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Details Fix | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Sergii.Kropotov | |
// @match *://webview.ent.ukrgas.com.ua/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
document.querySelectorAll(".recordBox").forEach( | |
e => { | |
let parent = e; | |
let audio = document.createElement("audio"); | |
audio.controls="true"; | |
audio.src = e.querySelectorAll("a")[1].href; | |
parent.appendChild(audio); | |
} | |
); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment