Usefull Bookmarklets


                                        💡  🏮  💥 💫 💢 🔗 ➽ ♦ ❄ ➪➪ ❏ ❏


💢 🔗➽➽    BOOKMARKLET    💢 🔗➽➽

To use bokkmarklet offline, open a local file (e.g. C:\ABC\def.txt)



    ➽➽ Open current page on Archive.org/Archive Today =

javascript:void(open('https://web.archive.org/web/*/' + decodeURIComponent(location.href)));

•OR•

javascript:void(open('https://archive.is/search/?q=' + encodeURIComponent(location.href)));

•OR•

javascript:void(open('https://archive.today/'+location.href));


    ➽➽ Save a page directly on Archive.org =

javascript:void(window.open('https://web.archive.org/save/'+location.href));

•OR•

javascript:void(open('https://archive.today/?run=1&url='+encodeURIComponent(document.location)))



    ➽➽ Get all links from a page =

javascript:(function(){var e=[],t=document.getElementsByTagName("a"),n=t.length,r=window.open("","win","width=300,height=300");for(;n>0;n--){var i=t[n-1].getAttribute("href");t[n-1]!=null&&i!=null&&i.charAt(0)==="h"&&i.indexOf(window.location.hostname)==-1&&e.push("<li><a href="+i+">"+i+"</a></li>")}r.document.open("text/html","replace"),r.document.write("<h1>Links Found:</h1><ul>"+e.join("")+"</ul>")})()

•OR•

javascript:(function() {
    let links = document.querySelectorAll('a');
    let linkList = Array.from(links).map(link => link.href).join('\n');
    let textarea = document.createElement('textarea');
    textarea.value = linkList;
    document.body.appendChild(textarea);
    textarea.select();
    document.execCommand('copy');
    document.body.removeChild(textarea);
    alert('All links have been copied to your clipboard!');
})();

•OR•    Links and link text =

javascript:(function() {
    let links = document.querySelectorAll('a');
    let linkList = Array.from(links).map(link => `${link.innerText}: ${link.href}`).join('\n');
    let textarea = document.createElement('textarea');
    textarea.value = linkList;
    document.body.appendChild(textarea);
    textarea.select();
    document.execCommand('copy');
    document.body.removeChild(textarea);
    alert('All links and their names have been copied to your clipboard!');
})();


    ➽➽ Google SERP Scraper - Show all links =

javascript:(function()%7Bfunction getParameterByName(e%2Ct)%7Be%3De.replace(%2F%5B%5C%5B%5D%2F%2C"%5C%5C%5B").replace(%2F%5B%5C%5D%5D%2F%2C"%5C%5C%5D")%3Bvar n%3Dnew RegExp("%5B%5C%5C%3F%26%5D"%2Be%2B"%3D(%5B%5E%26%23%5D*)")%2Cr%3Dn.exec(t%3D%3Dtrue%3Flocation.hash.replace("%23"%2C"%3F")%3Alocation.search)%3Bif(r%3D%3Dnull%26%26t%3D%3Dfalse)%7Breturn getParameterByName(e%2Ctrue)%7Delse%7Breturn r%3D%3Dnull%3F""%3AdecodeURIComponent(r%5B1%5D.replace(%2F%5C%2B%2Fg%2C" "))%7D%7Dstr%3D"<style type%3D%27text%2Fcss%27>body%7Bcolor%3A%23000%3Bbackground-color%3A%23fff%3Bmargin%3A0%3Bpadding%3A0%3Bfont-family%3Aarial%2Chelvetica%2Csans-serif%3Bfont-size%3A82%25%7D*%7Bfont-weight%3A400%3Bcolor%3A%23000%7Dh3%2Ch4%2Ch5%2Ch6%7Bmargin%3A0 0 15px%3Bpadding%3A0%7D%23rt%7Bfont-size%3A12px%3Bwidth%3A500px%7Dtable%2Ctd%2Cth%2Ctr%7Bfont-size%3A1em%3Boverflow%3Ahidden%3Btext-overflow%3Aellipsis%3Bword-wrap%3Abreak-word%7Dtextarea%7Bwidth%3A100%25%7Dth%7Bbackground-color%3A%23eee%3Bcolor%3A%23000%3Bfont-weight%3A700%7Dtd a%7Bwidth%3A446px%3Bdisplay%3Ablock%7D.id%7Bbackground%3A%23eee%3Bcolor%3A%23000%3Btext-align%3Acenter%7D.g%7Bfont-family%3Aarial%2Csans-serif%3Bcolor%3A%23000%3Bmargin%3A1em 0%3Bfont-size%3A122%25%7D.g h2%7Bfont-family%3Aarial%2Csans-serif%3Bmargin%3A0%7D.r%7Bdisplay%3Ainline%3Bfont-weight%3A400%3Bmargin%3A10%7D.j%7Bwidth%3A34em%7D.std%7Bfont-size%3A82%25%7D.a%7Bcolor%3Agreen%7D.fl%7Bcolor%3A%2377c%7D.bl%7Bdisplay%3Ainline%7Da%7Bcolor%3A%2300c%7Da%3Avisited%7Bcolor%3A%23551a8b%7Da%3Aactive%7Bcolor%3Ared%7D.twitter-share-button%7Bmargin-bottom%3A-5px%7Dp.b%7Bline-height%3A22px%3Btext-align%3Acenter%7D<%2Fstyle>%5Cn"%3Banchors%3Ddocument.getElementsByTagName("a")%3Bvar all%3D%5B%5D%3Bvar keyword%3DgetParameterByName("q"%2Cfalse)%3Bstr%2B%3D"<title>Google SERP Scraper Bookmarklet<%2Ftitle>"%3Bstr%2B%3D"<div style%3D%27width%3A 900px%3B margin%3A 0 auto%3B%27>"%3Bstr%2B%3D"<h1 style%3D%27margin%3A 1em 0em 0em 0em%3B text-align%3A center%3B%27>Google SERP Scraper Bookmarklet<%2Fh1>"%3Bstr%2B%3D"<h2 style%3D%27text-align%3A center%3B%27>Keyword - "%2Bkeyword%2B"<%2Fh2>"%3Bstr%2B%3D"<table width%3D%27100%25%27>"%3Bstr%2B%3D"<tr><th width%3D%275%25%27>Result<%2Fth><th width%3D%2750%25%27>Link<%2Fth><th width%3D%2745%25%27>Anchor Text<%2Fth><%2Ftr>%5Cn"%3Bvar tweetText%3D%27<p class%3D"b">If you use and like this%2C please <a href%3D"https%3A%2F%2Ftwitter.com%2Fshare" class%3D"twitter-share-button" data-count%3D"none" data-lang%3D"en" data-url%3D"http%3A%2F%2Fcognitiveseo.com%2Fblog%2F5714%2F69-amazing-seo-bookmarklets-to-supercharge-your-internet-marketing%2F" data-text%3D"%2F*Google SERP Scraper*%2F Bookmarklet %2B 68 Other Uber Amazing Bookmarklets">Tweet<%2Fa> about it and help us spread the word.<br %2F> Happy SCRAPing and thanks for sharing!<br %2F> Coded by <a href%3D"http%3A%2F%2Fcognitiveseo.com%2F" target%3D"_blank">cognitiveSEO<%2Fa>.<%2Fp>%27%3Bvar tweetScript%3D%27<script>!function(d%2Cs%2Cid)%7Bvar js%2Cfjs%3Dd.getElementsByTagName(s)%5B0%5D%3Bif(!d.getElementById(id))%7Bjs%3Dd.createElement(s)%3Bjs.id%3Did%3Bjs.src%3D"https%3A%2F%2Fplatform.twitter.com%2Fwidgets.js"%3Bfjs.parentNode.insertBefore(js%2Cfjs)%3B%7D%7D(document%2C"script"%2C"twitter-wjs")%3B<%2Fscript>%27%3Bvar k%3D0%3Bvar listing%3D""%3Bvar links%3D""%3Bvar anchorTexts%3D""%3Bvar linksAnchors%3D""%3Bfor(i%3D0%3Bi<anchors.length%3Bi%2B%2B)%7Bvar anchorText%3Danchors%5Bi%5D.textContent%3Bvar anchorLink%3Danchors%5Bi%5D.href%3Bvar linkAnchor%3D""%3Bif(anchorLink.match(%2F%5E((%3F!google%5C.%7Ccache%7C%5C.yahoo%5C.%7Cyoutube%5C.com%5C%2Fresults%7Cjavascript%3A%7B%7D%7Cjavascript%3Avoid%7Cjavascript%3A%5C%3B%7Capi%5C.technorati%5C.com%7Cbotw%5C.org%5C%2Fsearch%7Cdel%5C.icio%5C.us%5C%2Furl%5C%2Fcheck%7Cdigg%5C.com%5C%2Fsearch%7Csearch%5C.twitter%5C.com%5C%2Fsearch%7Csearch%5C.yahoo%5C.com%5C%2Fsearch%7Csiteanalytics%5C.compete%5C.com%7Ctools%5C.seobook%5C.com%5C%2Fgeneral%5C%2Fkeyword%5C%2Fsuggestions%7Cweb%5C.archive%5C.org%5C%2Fweb%5C%2F%7Cwhois%5C.domaintools%5C.com%7Cwww%5C.alexa%5C.com%5C%2Fdata%5C%2Fdetails%5C%2Fmain%7Cwww%5C.bloglines%5C.com%5C%2Fsearch%7Cwww%5C.majesticseo%5C.com%5C%2Fsearch%5C.php%7Cwww%5C.semrush%5C.com%5C%2Finfo%5C%2F%7Cwww%5C.semrush%5C.com%5C%2Fsearch%5C.php%7Cwww%5C.stumbleupon%5C.com%5C%2Furl%7Cwikipedia.org%5C%2Fwiki%5C%2FSpecial%3ASearch).)*%24%2Fi)%26%26anchorLink!%3D""%26%26all.indexOf(anchorLink)%3D%3D-1%26%26anchorText!%3D""%26%26anchors%5Bi%5D.className!%3D"gb_b")%7Ball.push(anchorLink)%3Blisting%2B%3DanchorLink%2B"%5Cn"%3BanchorTexts%2B%3DanchorText%2B"%5Cn"%3BlinkAnchor%3DanchorLink.replace("%2C"%2C"%252C")%2B"%2C%09"%2BanchorText.replace("%2C"%2C"")%3BlinksAnchors%2B%3DlinkAnchor%2B"%5Cn"%3Bk%3Dk%2B1%3Bif(anchorText%3D%3D%3Dundefined)anchorText%3Danchors%5Bi%5D.innerText%3Bstr%2B%3D"<tr>"%3Bstr%2B%3D"<td class%3D%27id%27>"%2Bk%2B"<%2Ftd>"%3Bstr%2B%3D"<td><a href%3D"%2Banchors%5Bi%5D.href%2B" target%3D%27_blank%27>"%2Banchors%5Bi%5D.href%2B"<%2Fa><%2Ftd>"%3Bstr%2B%3D"<td>"%2BanchorText%2B"<%2Ftd>"%3Bstr%2B%3D"<%2Ftr>%5Cn"%7D%7Dstr%2B%3D"<%2Ftable><br%2F><br%2F><table width%3D%27100%25%27><tr><td width%3D%2755%25%27><h2>Links<%2Fh2><textarea rows%3D10 style%3D%27width%3A97%25%27 readonly>"%3Bstr%2B%3Dlisting%3Bstr%2B%3D"<%2Ftextarea><%2Ftd><td width%3D%2745%25%27><h2>Anchors<%2Fh2><textarea rows%3D10 readonly>"%3Bstr%2B%3DanchorTexts%3Bstr%2B%3D"<%2Ftextarea><%2Ftd><%2Ftr><%2Ftable><br%2F><br%2F><h2>All Data - CSV<%2Fh2><textarea rows%3D10 readonly>"%3Bstr%2B%3D"Links%2C Anchors%5Cn"%3Bstr%2B%3DlinksAnchors%3Bstr%2B%3D"<%2Ftextarea><br %2F> <br %2F>"%3Bstr%2B%3DtweetText%3Bstr%2B%3DtweetScript%3Bstr%2B%3D"<br %2F><%2Fdiv> <br %2F>"%3Bwith(window.open())%7Bdocument.write(str)%3Bdocument.close()%7D%7D)()



    ➽➽ Google Translate / Bypass =

javascript:void(open('https://translate.google.co.in/translate?hl=en&sl=sq&tl=en&u=' location.href));

•OR•

javascript:(function() {  var lang = prompt("Enter language code to translate to:", "en");  var translationUrl = "https://translate.google.com/translate?sl=auto&tl=" + lang + "&u=" + encodeURIComponent(window.location.href);  window.open(translationUrl, "_blank");})();



    ➽➽ Bypass Paywall - Talkify =

javascript:(function(){window.open("http://talkify.net/?url="+window.location.href);})()



    ➽➽ Edit text on page =

javascript:(function(){document.body.contentEditable = true;})()

•OR•

javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0



    ➽➽ Edit browser tab title =

javascript:void(document.title=prompt('Enter page title') ?? document.title)



    ➽➽ Enable right click / Copy paste =

javascript:(function(){"use strict"; if (document.oncontextmenu) { document.oncontextmenu = null; } })()

Then Print > Select text

•OR•

javascript:(function(){"use strict"; var all = document.getElementsByTagName("*"); var i; var max; for (i = 0, max = all.length; i < max; i += 1) { if (all[i].onCopy) { all[i].onCopy = null; } if (all[i].onPaste) { all[i].onPaste = null; } } })()



    ➽➽ Copy URL =

javascript: (() => {navigator.clipboard.writeText(window.location.href.replace(/\?.+$/,"")); })();



    ➽➽ Extract URLs from input =

javascript:(function(){
    var userInput = prompt("Please enter the text:");
    if (userInput) {
        var urlPattern = /https?:\/\/[^\s]+/g;
        var urls = userInput.match(urlPattern) || [];
        if (urls.length > 0) {
            var textToCopy = urls.join("\n");
            var textArea = document.createElement('textarea');
            textArea.value = textToCopy;
            document.body.appendChild(textArea);
            textArea.select();
            document.execCommand('copy');
            document.body.removeChild(textArea);
            alert("Copied " + urls.length + " URLs to clipboard");
        } else {
            alert("No URLs found in the input text.");
        }
    }
})();



    ➽➽ Open multiple URLs =

javascript:(function(){
    var userInput = prompt("Please enter the URLs (separated by spaces or new lines):");
    if (userInput) {
        var urls = userInput.split(/\s+/);
        urls.forEach(function(url) {
            if (!/^https?:\/\//i.test(url)) {
                url = 'http://' + url;
            }
            window.open(url, '_blank');
        });
    }
})();



    ➽➽ Convert URL - ASCII to UTF-8 =

javascript:(()=>{s=decodeURIComponent(window.location);prompt(s, s)})()



    ➽➽ Convert Base64 to text =

javascript:(function(){(()=>{try{prompt("Decoded text:",atob(prompt("Decode base64:")??function(){throw null}()))}catch(t){t&&alert(t)}})();}());



    ➽➽  Autoscroll =

javascript:setInterval(function(s){scrollBy(0,s||1)},100)

•OR•

javascript:setInterval(function(s){scrollBy(10,s||10)},100)

•OR•    Scroll to end =

javascript:window.scrollTo(0,Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,document.documentElement.clientHeight))



    ➽➽ Word count =

javascript: var wordCount=document.body.innerText.split(' ').length + 1; var message='There are ' + wordCount + ' words on this page.'; alert(message);



    ➽➽ Password revealer =

javascript: (() => {document.querySelectorAll('input[type=password]').forEach(el => el.type = 'text')})();

•OR•

javascript:(function(){ var IN,F;IN=document.getElementsByTagName('input'); for(var i=0;i<IN.length;i++){F=IN[i]; if(F.type.toLowerCase()=='password'){ try{F.type='text'}catch(r){ var n,Fa;n=document.createElement('input'); Fa=F.attributes;for(var ii=0;ii<Fa.length;ii++){ var k,knn,knv;k=Fa[ii];knn=k.nodeName;knv=k.nodeValue; if(knn.toLowerCase()!='type'){ if(knn!='height'&&knn!='width'&!!knv)n[knn]=knv}}; F.parentNode.replaceChild(n,F)}}}})()



    ➽➽ Record screen using browser =

javascript:(function(){const video=document.createElement("video");function go(e){const t=new MediaRecorder(e),d=[];t.addEventListener("dataavailable",(e=>{d.push(e.data)})),t.addEventListener("stop",(()=>{const e=new Blob(d,{type:d[0].type});video.src=URL.createObjectURL(e);const t=document.createElement("a");t.href=video.src,t.download="video.webm",t.click()})),t.start()}video.style="display: none",document.body.append(video),navigator.mediaDevices.getDisplayMedia({video:!0,selfBrowserSurface:"include"}).then((e=>{go(e)}));}());



     ➽➽ New 2 Old & Old 2 New Reddit (Bypass nsfw login) =

javascript:var url = location.href; if (url.includes("www")) { var url = url.replace("www", "old"); window.open(url,"_self") } else { var url = url.replace("old", "www"); window.open(url,"_self") }

•OR•

javascript:u=location.href;if(u.match('reddit\.com')){if(u.match('www\.reddit')){u=u.replace('www\.reddit','old.reddit')}else{u=u.replace('old\.reddit','www.reddit')}window.location=u;}else{alert('Not a Reddit URL.')}



    ➽➽ Wikipedia - Search selected word =

javascript:(function(){
    var q = document.getSelection().toString();
    if (!q) {
        q = prompt('Wikipedia search:', '');
    }
    if (q) {
        window.open('http://en.wikipedia.org/w/wiki.phtml?search=' + encodeURIComponent(q), '_blank');
    }
})();

•OR•

Select 5 lines of text & it will search every line separately in 5 new tab of wikipedia =

javascript:(function(){
    var q = document.getSelection().toString().split('\n');
    if (q.length > 1) {
        q.forEach(function(line) {
            if (line.trim()) {
                window.open('http://en.wikipedia.org/w/wiki.phtml?search=' + encodeURIComponent(line.trim()), '_blank');
            }
        });
    } else {
        q = prompt('Wikipedia search:', '');
        if (q) {
            window.open('http://en.wikipedia.org/w/wiki.phtml?search=' + encodeURIComponent(q), '_blank');
        }
    }
})();



    ➽➽ IMDb - Search selected word (Single & multiple line) =

javascript:(function(){
    var s = window.getSelection ? window.getSelection().toString().split('\n') : '';
    if (s.length > 1) {
        s.forEach(function(line) {
            if (line.trim()) {
                window.open('https://www.imdb.com/find/?q=' + encodeURIComponent(line.trim()) + '&s=tt', '_blank');
            }
        });
    } else {
        s = prompt('No text selected. Enter the title you want to search for:','');
        if (s) {
            window.open('https://www.imdb.com/find/?q=' + encodeURIComponent(s) + '&s=tt', '_blank');
        }
    }
})();



    ➽➽ Imdb - Free streaming =

javascript:(window.location.href.includes("www.imdb"))?location.href=window.location.href.replace("www.imdb.com/title/","v2.vidsrc.me/embed/"):console.log('not an imdb page')

•OR•

https://yaps.therarbg.to/play/movies?id=



    ➽➽ Imdb - Redirect to technical specifications =

javascript:(function() { window.location.pathname = window.location.pathname + "technical"; })();

•OR•

Replace technical WITH alternateversions



    ➽➽ IMDB - Sort by number of ratings =

javascript:(function(){
  var currentUrl = window.location.href;
  var id = currentUrl.match(/name\/(.*?)\//)[1];
  var newUrl = 'https://www.imdb.com/search/title/?role=' + id + '&job_categories=actor&explore=credits&sort=num_votes,desc';
  window.location.href = newUrl;
})();

•OR•

var id = currentUrl.match(/nm\d+/)[0];

**    Replace actor with actress / director.



    ➽➽ YouTube - Window resize + Audio Video DL =
https://snarly.github.io/yt6/

javascript:(function(){var v='d222354f4b2d825aa0b424146dca0fdf03b51043/yt6.js',y='youtube.com/',w=window,d=w.document,h=d.location.href,yt6=w.yt6||{},yt6d=w.yt6d||{},t=w.trustedTypes;if(yt6d.loaded>=4)return void 0;if(h.split(y+'watch')[1]||h.split(y+'embed')[1]||h.split('playlist')[1]||h.split(y+'shorts')[1]||h.split('/base.j')[1]=='s'){var id='snarls_player',e='script',q,u=function(s){if(typeof s=='string')return s};try{t.createPolicy('default',{createHTML:u,createScriptURL:u,createScript:u,})}catch(f){};yt6.loaded=0;function s(x){x=x||id;return d.getElementById(x)};function c(e){return d.createElement(e)};function a(q){s().appendChild(q);s().add_subs='en,hu,de';s().version='2025-01-10-01:45';yt6d.src=q.src};function r(){if(s()){var x;try{x=s().querySelector('#'+id)}catch(e){x=s().firstChild};if(x)s().removeChild(x)}};function b(){var i,j,o,x;o=['rawcdn.githack','js','cdn.rawgit'];for(j,x,i=o.length;i;j=Math.floor(Math.random()*i),x=o[--i],o[i]=o[j],o[j]=x);q=c('div');q.id=id;if(q!=s())d.body.appendChild(q);var src='https://'+o[0]+'.com/snarly/yt6/'+v,src0='https://cdn.jsdelivr.net/gh/snarly/yt6@'+v;function oc(ox,oy,sr){return(oy!='js')?sr.replace(ox,oy):src0};q=c(e);q.id=id;q.src=(o[0]!='js')?src:src0; q.onerror=function(){q=c(e);q.id=id;q.src=oc(o[0],o[1],src);q.onerror=function(){q=c(e);q.id=id;q.src=oc(o[0],o[2],src);q.onerror=function(){q=c(e);q.id=id;q.src=oc(o[0],o[3],src);q.onerror=function(){q=c(e);q.id=id;q.src=src.replace('https','http')};a(q);r();};a(q);r();};a(q);r();};try{a(q);}catch(f){a(q)};};function g(){try{deldiv()}catch(f){r()};b()};if(!s()){b()};setTimeout(function(){var t=w.yt6;if(t)t.loaded=t.loaded||window['status'];if(!t||(t&&(!t.body||(t.loaded<3))))g()},3000);}else{void 0};})()/*2025-01-10-01:45*/



    ➽➽ Youtube - Load whole playlist =

https://github.com/vitto4/yt-playlist-diff/blob/yt-playlist-bookmarklet/src/bookmarklet.js

•OR•

javascript:(function scrollToBottom() {
    let lastHeight = 0;
    function scroll() {
        window.scrollTo(0, document.documentElement.scrollHeight);
        setTimeout(() => {
            let newHeight = document.documentElement.scrollHeight;
            if (newHeight !== lastHeight) {
                lastHeight = newHeight;
                scroll();
            }
        }, 1000);
    }
    scroll();
})();


•OR•    Click the mouse wheel & set it downward.



    ➽➽ Youtube - Copy all video titles from a YT playlist into clipboard =

javascript:(function(){
    var titles = [];
    document.querySelectorAll('a#video-title').forEach(function(video) {
        titles.push(video.textContent.trim());
    });
    var textToCopy = titles.join('\n');
    var textArea = document.createElement('textarea');
    textArea.value = textToCopy;
    document.body.appendChild(textArea);
    textArea.select();
    document.execCommand('copy');
    document.body.removeChild(textArea);
    alert('Copied ' + titles.length + ' titles to clipboard');
})();



    ➽➽ Youtube - Bypass geoblock =

javascript:(window.location.href.includes("www.youtube"))?location.href=window.location.href.replace("www.youtube.com","piped.kavin.rocks"):console.log('not a youtube page')


•OR•    Other Instances  =  tube.cadence.moe  |  https://api.invidious.io



    ➽➽ Youtube - Audio only =

javascript:(window.location.href.includes("www.youtube"))?location.href=window.location.href.replace("www.youtube.com","hyperpipe.surge.sh"):console.log('not a youtube page')



    ➽➽ Youtube Embed =

 javascript:(function(){window.location.href = window.location.href.replace('youtube.com/watch?v=', 'youtube.com/embed/');})();

•OR•

javascript:(function(){window.location.href = window.location.href.replace('youtube.com/watch?v=', 'youtube-nocookie.com/embed/');})();

•OR•

javascript:(function(){window.location.href = window.location.href.replace('youtube.com', 'youtube.ttools.io');})();



     ➽➽ Youtube Thumbnail =

javascript:open("https://i.ytimg.com/vi/"+location.search.match(/v=([^&]+)/)[1]+"/maxresdefault.jpg");



     ➽➽ YouTube - Create anonymous playlist from all YouTube links on a page (Exception: YT & Locally stored text file) =

javascript:var list = document.querySelectorAll('*[href*="youtu"]');var urls = [];for (var i = 0; i < list.length; i++) {var id = list[i].href.match(/.*(?:youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=)([^#\&\?]*).*/);if (id!=null){ if (id[1].length == 11) { urls.push(id[1]);}}}var unq = urls.filter(function(elem, index, self) { return index === self.indexOf(elem);}); if (unq.length > 0){ window.open("https://www.youtube.com/watch_videos?video_ids=" + unq.join());}

•OR•    Create anonymous playlist from a chennel's videos (Popular) =

javascript:(function(){var links=document.querySelectorAll('a[href*="watch?v="]'),ids=[],i;for(i=0;i<links.length&&ids.length<50;i++){var id=links[i].href.split('watch?v=')[1].split('&')[0];if(ids.indexOf(id)==-1){ids.push(id);}}if(ids.length){window.open('https://www.youtube.com/watch_videos?video_ids='+ids.join(','));}else{alert('No video links found on this page');}})();

•OR•    Create anonymous playlist from input =

javascript:(function() {
    var input = prompt('Please enter YouTube video URLs (one per line):');
    if (!input) {
        alert('No input provided.');
        return;
    }
    var urls = input.match(/https:\/\/www\.youtube\.com\/watch\?v=([a-zA-Z0-9_-]+)/g);
    if (!urls) {
        alert('No valid YouTube URLs found.');
        return;
    }
    var videoIds = urls.map(function(url) {
        return url.split('v=')[1];
    });
    var result = 'https://www.youtube.com/watch_videos?video_ids=' + videoIds.join(',');
    prompt('Here is your watch_videos link:', result);
})();



     ➽➽ YouTube - Find deleted video (Only English Titles) =

javascript: document.location = document.URL.replace('https://www.youtube.com/watch?v=','https://filmot.com/video/');



     ➽➽ YouTube - Reverse playlist =

javascript: var url = location.href; var url = url.replace("https://www.youtube.com/playlist?list=", "https://playlist.tools/"); window.open(url,"_self")



    ➽➽ URL Replace Template =


javascript: var url = location.href; var url = url.replace("google", "whogle"); window.open(url,"_self")


javascript:(window.location.href.includes("www.google"))?location.href=window.location.href.replace("www.google.com","whogle.com"):console.log('not a google page')


javascript: document.location = document.URL.replace('reddit.com','zeddit.com');


Replace reddit.com / old.reddit.com =

javascript: document.location = document.URL.replace(/(?:old\.)?reddit\.com/i, 'zeddit.com')


Add abcd after top-level domain (.com/.net ETC) =

javascript:(function() { window.location.hostname = window.location.hostname + ".abcd"; })();


Add abcd at the end of URL (site.com/pages/2) =

javascript:(function() { window.location.pathname = window.location.pathname + "abcd"; })();

javascript:window.location.href=window.location.href+'abcd';

javascript:(function(){document.location+='abcd'}());


Add abcd at the beginning of url =

javascript:void(open('abcd'+decodeURIComponent(location.href)));


Add https://loop.io/ at the beginning of url =

javascript:void(open('https://loop.io/' + encodeURIComponent(location.href)));

javascript:void(open('https://loop.io/'+location.href));

javascript:(function(){window.open("https://loop.io/"+document.URL);})()


Replace both ends of an URL =

This will add 111= before and &222 after subtitle in the URL https://subdl.com/subtitle

javascript:(function() {
    const currentUrl = window.location.href;
    const targetString = "subtitle";
    const newString = "111=subtitle&222";
    if (currentUrl.includes(targetString)) {
        const newUrl = currentUrl.replace(targetString, newString);
        window.location.href = newUrl;
    } else {
        alert("The specified string was not found in the current URL.");
    }
})();



Comments

Popular posts from this blog

Movie & TV Series Server List

Sites

Software

Android Apps & Games

Travel

Film

Boidesh