adding button on jut.su for downloading
This script dynamically adds a download button for a 1080p video source on a webpage. The button allows users to download the video file directly when clicked. The script waits for the specified video source element to be available in the DOM before adding the button.
waitForKeyElements to monitor the DOM for the presence of a video source element with the label "1080p".div to hold the link. The download link is styled and has an event listener to handle the download action via JavaScript.videoContent.waitForKeyElements:
addButton function when the element is found.addButton:
createDownloadLink.extractVideoName:
createDownloadLink:
div and a element styled for the download link.handleDownloadClick:
a element to trigger the download.