Hi,
kennt ihr noch diese "Stop Download" Funktion die Youtube mal hatte?
Rechtsklick und dann konnte man auswählen, dass das Video nicht weiter lädt.
Dieser Typ hier hat eine Lösung dafür, nur dass dieses Bookmarklet bei mir (
Opera 12.16) nicht haften bleibt.
Aber zum Glück gibt es ja auch ein UserS*****
// ==UserS*****==
// @name Stop YouTube Video Download
// @namespace 12346978985
// @des*****ion Stops YouTube Video From Downloading.
// @include http://*.youtube.com/*
// @include http://youtube.com/*
// @include https://*.youtube.com/*
// @include https://youtube.com/*
// @grant none
// @version 1.1
// ==/UserS*****==
/*--- Create a button in a container div. It will be styled and positioned with CSS.
*/
var container = document.getElementById('watch7-user-header');
var btn = document.createElement('button'),
lastContainerChild = container.lastElementChild;
btn.id = 'stop-download';
btn.setAttribute('type', 'button');
btn.setAttribute('title', 'Stop Youtube Download');
btn.setAttribute('data-tooltip', 'Stop Youtube Download');
btn.setAttribute('data-tooltip-title', 'Stop Youtube Download');
btn.setAttribute('class', 'yt-subs*****ion-button yt-uix-button yt-uix-button-subscribe-branded');
var txt = document.createElement('span');
txt.setAttribute('id','stpdownload');
txt.appendChild(document.createTextNode('Stop Video'));
txt.setAttribute('class', 'yt-uix-button-content');
btn.appendChild(txt);
container.appendChild(btn);
btn.addEventListener('click',stopvidload, true);
function stopvidload(){
var p;
document.getElementById("movie_player-flash") ? p = document.getElementById("movie_player-flash") : null;
document.getElementById("movie_player") ? p = document.getElementById("movie_player") : null;
p.stopVideo();
}
Dieses S***** kann ich mit der Erweiterung UserS***** Converter
UserS***** Converter auch erfolgreich zu einer Erweiterung umwandeln, das Problem ist jetzt nur noch, dass diese Funktion nicht als Button auftaucht bzw. als ShortCut wie viele andere Erweiterungen.
Könnte mir bitte jemand dieses S***** so umschreiben, dass ich einen Button bekomme, der diese Funktion ausführt?