// ==UserScript== // @name BitChute Download Link // @namespace http:/Sglmerohbjojnbo // @description Create Download Links on Bitchute.com // @include https://*.bitchute.com/video/* // @include https://bitchute.com/video/* // @version 1.3 // @grant GM_xmlhttpRequest // @downloadURL https://update.greasyfork.icu/scripts/376908/BitChute%20Download%20Link.user.js // @updateURL https://update.greasyfork.icu/scripts/376908/BitChute%20Download%20Link.meta.js // ==/UserScript== function flattenTitle(h) { h = unescape(h); h = h.replace(/\W/g,"_").replace(/\_+/g,"_").replace("_amp_", "_and_"); while (!h.charAt(0).match(/[a-zA-Z0-9]/i)&&h.length>1) {h = h.substr(1);} while (h.length>1&&!h.charAt(h.length-1).match(/[a-zA-Z0-9]/i)) {h = h.substring(0,h.length-1);} return(h); } var As = document.getElementsByTagName("a"); var linkfound = false; for (var s=0; s')[0].split('