skip to Main Content

Javascript – Identify iframe with specific string in src

Page sometime contain single embedded iframe video. I wish top open those specific videos in the current tab. <iframe allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" marginheight="0" marginwidth="0" scrolling="no" frameborder="0" width="100%" src="https://streamview.com/v/wkx5ntgwdv5b"></iframe> My code: (function() { 'use strict'; var openontaB = document.querySelector('iframe').src; window.location.href =…

VIEW QUESTION

Press button with Tampermonkey extension – Javascript

This question was asked a lot, but I cant find a solution for my problem... script.js $(document).ready(function () { if (document.getElementById('searchSerialButton') !== null) { document.getElementById("searchSerialButton").addEventListener('click', () => { console.log("scripts.js -> ready() callback -> addEventListener(`click`) callback"); }); } }); index.html <!DOCTYPE…

VIEW QUESTION
Back To Top
Search