Skip to content

Instantly share code, notes, and snippets.

@Ant1gon
Last active January 12, 2021 07:11
Show Gist options
  • Save Ant1gon/37b23b7dee54c7f80cb9d5120bd7e27a to your computer and use it in GitHub Desktop.
Save Ant1gon/37b23b7dee54c7f80cb9d5120bd7e27a to your computer and use it in GitHub Desktop.
// ==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