write a bookmarketlet that extracts www.tiktok.com
urls from the html source page and looks similar to this "\/\/"\/\/www.tiktok.com\/embed\/7189755478090566917" and convert to a the properly formatted url "https://www.tiktok.com/embed/7189755478090566917"
. the tiktok url ID will always be unique digits such as "7189755478090566917" is in the example url i provided. the bookmarklet must should use javascript:void(window.open('https://tik.fail/?url=' + document.location.href));
so that it inserts found tiktok urls like javascript:void(window.open('https://tik.fail/?url=https://www.tiktok.com/embed/7189755478090566917' + document.location.href));
source page examples are below
<span data-s9e-mediaembed="tiktok" style="width:340px"><span style="padding-bottom:205.882353%"><span data-s9e-mediaembed-iframe='["allowfullscreen","","scrolling","no","src","\/\/www.tiktok.com\/embed\/7189755478090566917"]'></span></span></span><br />
<span data-s9e-mediaembed="tiktok" style="width:340px"><span style="padding-bottom:205.882353%"><span data-s9e-mediaembed-iframe='["allowfullscreen","","scrolling","no","src","\/\/www.tiktok.com\/embed\/7242633306418728219"]'></span></span></span><br />
<span data-s9e-mediaembed="tiktok" style="width:340px"><span style="padding-bottom:205.882353%"><span data-s9e-mediaembed-iframe='["allowfullscreen","","scrolling","no","src","\/\/www.tiktok.com\/embed\/7265074208890228001"]'></span></span></span><br />
<br />
<span data-s9e-mediaembed="tiktok" style="width:340px"><span style="padding-bottom:205.882353%"><span data-s9e-mediaembed-iframe='["allowfullscreen","","scrolling","no","src","\/\/www.tiktok.com\/embed\/7257913645940739355"]'></span></span></span><br />
<br />