Last active
January 12, 2021 07:11
-
-
Save Ant1gon/37b23b7dee54c7f80cb9d5120bd7e27a 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