Cr24Z{"content_scripts": [{"matches": ["http://*/*", "https://*/*"], "js": ["tubestop.js"]}], "description": "Stops YouTube videos from playing automatically.", "format_version": 1, "version": "1.2.6", "zip_hash": "bab33cbe1fecc5b56752bca11f0dc6572d290e51a921f8b06af7fd129dd6eef1", "id": "DEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF", "name": "TubeStop"}PK}r:@s11 manifest.json{ "format_version": 1, "id": "DEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF", "version": "1.2.6", "name": "TubeStop", "description": "Stops YouTube videos from playing automatically.", "content_scripts": [ { "matches": ["http://*/*","https://*/*"], "js": ["tubestop.js"] } ] }PKCr: tubestop.jsconst isYoutube = /(\w*\.)?youtube\.com$/i; if (!isYoutube.test(document.location.host)) { this.checkForYouTubeEmbeds(document); return; } var playerDiv = document.getElementById("watch-player-div"); if (playerDiv) { if (document.getElementById("embed_code").value.indexOf("<") != -1){ var embed_code = document.getElementById("embed_code").value; embed_code = embed_code.replace(/height="[0-9]+"/g, 'height="385"'); embed_code = embed_code.replace(/width="[0-9]+"/g, 'width="640"'); playerDiv.innerHTML = embed_code; } else { // Embedding disabled var code = playerDiv.innerHTML; code = code.replace(/"/g, "'"); code = code.replace(/'/g, "\\'"); playerDiv.innerHTML = "Click to play
Courtesy of TubeStop
"; } } function checkForYouTubeEmbeds(page) { var params = page.getElementsByTagName("param"); for (var i = 0; i < params.length; i++){ var param = params[i]; var value = param.getAttribute("value"); if (value && value.match(/youtube\.com.*autoplay=1/i)){ param.setAttribute("value",value.replace(/&autoplay=1/i,"")); param.parentNode.innerHTML = param.parentNode.innerHTML; } } var embeds = page.getElementsByTagName("embed"); for (var i = 0; i < embeds.length; i++){ var embed = embeds[i]; var src = embed.getAttribute("src"); if (src.match(/youtube\.com.*autoplay=1/i)){ embed.setAttribute("src",src.replace(/&autoplay=1/i,"")); embed.parentNode.innerHTML = embed.parentNode.innerHTML; } } return; } PK}r:@s11 manifest.jsonPKCr: \tubestop.jsPKtT