Usefull Bookmarklets

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



    ➽➽ Open Current Page On Archive.org/Archive Today =

javascript:(function(){window.open("https://web.archive.org/web/*/"+window.location.href);})()
 
OR

javascript:void(window.open('https://web.archive.org/web/*/'+location.href.replace(/\/$/, '')));
 
OR

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 external Links =

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>")})()



    ➽➽ Highlight all links =

javascript:for(nIx5Bs=0;nIx5Bs<document.all.length;nIx5Bs  ){if(document.all[nIx5Bs].tagName=='A'){with(document.all[nIx5Bs].style){if(backgroundColor=='yellow'){void(backgroundColor=document.bgColor)}else{void(backgroundColor='yellow')}}}}



    ➽➽ Google SERP Scraper - Show all links =

javascript:(function(){function getParameterByName(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)"),r=n.exec(t==true?location.hash.replace("#","?"):location.search);if(r==null&&t==false){return getParameterByName(e,true)}else{return r==null?"":decodeURIComponent(r[1].replace(/\+/g," "))}}str="<style type='text/css'>body{color:#000;background-color:#fff;margin:0;padding:0;font-family:arial,helvetica,sans-serif;font-size:82%}*{font-weight:400;color:#000}h3,h4,h5,h6{margin:0 0 15px;padding:0}#rt{font-size:12px;width:500px}table,td,th,tr{font-size:1em;overflow:hidden;text-overflow:ellipsis;word-wrap:break-word}textarea{width:100%}th{background-color:#eee;color:#000;font-weight:700}td a{width:446px;display:block}.id{background:#eee;color:#000;text-align:center}.g{font-family:arial,sans-serif;color:#000;margin:1em 0;font-size:122%}.g h2{font-family:arial,sans-serif;margin:0}.r{display:inline;font-weight:400;margin:10}.j{width:34em}.std{font-size:82%}.a{color:green}.fl{color:#77c}.bl{display:inline}a{color:#00c}a:visited{color:#551a8b}a:active{color:red}.twitter-share-button{margin-bottom:-5px}p.b{line-height:22px;text-align:center}</style>\n";anchors=document.getElementsByTagName("a");var all=[];var keyword=getParameterByName("q",false);str+="<title>Google SERP Scraper Bookmarklet</title>";str+="<div style='width: 900px; margin: 0 auto;'>";str+="<h1 style='margin: 1em 0em 0em 0em; text-align: center;'>Google SERP Scraper Bookmarklet</h1>";str+="<h2 style='text-align: center;'>Keyword - "+keyword+"</h2>";str+="<table width='100%'>";str+="<tr><th width='5%'>Result</th><th width='50%'>Link</th><th width='45%'>Anchor Text</th></tr>\n";var tweetText='<p class="b">If you use and like this, please <a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-lang="en" data-url="http://cognitiveseo.com/blog/5714/69-amazing-seo-bookmarklets-to-supercharge-your-internet-marketing/" data-text="/*Google SERP Scraper*/ Bookmarklet + 68 Other Uber Amazing Bookmarklets">Tweet</a> about it and help us spread the word.<br /> Happy SCRAPing and thanks for sharing!<br /> Coded by <a href="http://cognitiveseo.com/" target="_blank">cognitiveSEO</a>.</p>';var tweetScript='<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>';var k=0;var listing="";var links="";var anchorTexts="";var linksAnchors="";for(i=0;i<anchors.length;i++){var anchorText=anchors[i].textContent;var anchorLink=anchors[i].href;var linkAnchor="";if(anchorLink.match(/^((?!google\.|cache|\.yahoo\.|youtube\.com\/results|javascript:{}|javascript:void|javascript:\;|api\.technorati\.com|botw\.org\/search|del\.icio\.us\/url\/check|digg\.com\/search|search\.twitter\.com\/search|search\.yahoo\.com\/search|siteanalytics\.compete\.com|tools\.seobook\.com\/general\/keyword\/suggestions|web\.archive\.org\/web\/|whois\.domaintools\.com|www\.alexa\.com\/data\/details\/main|www\.bloglines\.com\/search|www\.majesticseo\.com\/search\.php|www\.semrush\.com\/info\/|www\.semrush\.com\/search\.php|www\.stumbleupon\.com\/url|wikipedia.org\/wiki\/Special:Search).)*$/i)&&anchorLink!=""&&all.indexOf(anchorLink)==-1&&anchorText!=""&&anchors[i].className!="gb_b"){all.push(anchorLink);listing+=anchorLink+"\n";anchorTexts+=anchorText+"\n";linkAnchor=anchorLink.replace(",","%2C")+",    "+anchorText.replace(",","");linksAnchors+=linkAnchor+"\n";k=k+1;if(anchorText===undefined)anchorText=anchors[i].innerText;str+="<tr>";str+="<td class='id'>"+k+"</td>";str+="<td><a href="+anchors[i].href+" target='_blank'>"+anchors[i].href+"</a></td>";str+="<td>"+anchorText+"</td>";str+="</tr>\n"}}str+="</table><br/><br/><table width='100%'><tr><td width='55%'><h2>Links</h2><textarea rows=10 style='width:97%' readonly>";str+=listing;str+="


 
    ➽➽ 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 / Open Google cached version =

javascript:(function(){window.open("https://webcache.googleusercontent.com/search?q=cache:"+window.location.href);})()

OR

javascript:location.href='http://webcache.googleusercontent.com/search?q=cache:'+document.location.href;
 
OR
 
javascript:void(location.href='https://webcache.googleusercontent.com/search?q=cache:'+location.href);



    ➽➽ Bypass Paywall - TALKIFY =

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



    ➽➽ Paywall Penetration Tester/Remover =

javascript: if (document.getElementById('mymenu')) { document.getElementById('mymenu').remove(); } else { (function(){(function () {var i, elements = document.querySelectorAll('body *');for (i = 0; i < elements.length; i++) {if (getComputedStyle(elements[i]).position === 'fixed') {elements[i].parentNode.removeChild(elements[i]);}}})()})(); (function () { var cookies = document.cookie.split('; '); for (var c = 0; c < cookies.length; c  ) { var d = window.location.hostname.split('.'); while (d.length > 0) { var cookieBase = encodeURIComponent(cookies[c].split(';')[0].split('=')[0])   '=; expires=Thu, 01-Jan-1970 00:00:01 GMT; domain='   d.join('.')   ' ;path='; var p = location.pathname.split('/'); document.cookie = cookieBase   '/'; while (p.length > 0) { document.cookie = cookieBase   p.join('/'); p.pop(); }; d.shift(); } } })(); window.localStorage.clear(); var block_to_insert ; var container_block ; var outline= '<font size=-1><a href=https://outline.com/'   window.location.href   ' target=_blank title=Via Outline.com>  Outline Article</a></font>'; var pageTitle=document.getElementsByTagName('title')[0].innerText; var pageTitle = pageTitle.toString(); var pageTitle = pageTitle.replace(/ /g, ' '); var pageTitle = pageTitle.replace(/WSJ/g, ''); var gogoog= 'https://www.google.com/search?q=site:wsj.com/articles/ '   pageTitle; var go2='<font size=-1><a href='   gogoog   ' target=_blank>  Via Google referrer</a></font>'; var twit= 'https://twitter.com/search?q='   pageTitle   '&src=typd'; var gotwit='<font size=-1><a href='   twit   ' target=_blank>  Via Twitter referrer</a></font>'; var arch='<font size=-1><a href=https://archive.today/?run=1&url='   window.location.href  '>  Archive</a></font>'; var wayBack='<font size=-1><a href=https://web.archive.org/web/*/'   window.location.href  '>  WayBack Machine</a></font>'; var goFace='<font size=-1><a href=https://m.facebook.com/l.php?u='  encodeURIComponent(window.location.href)  '?ClearCache=true target=_blank>  Via Facebook Referrer</a></font>'; var titletag=document.getElementsByTagName('title')[0].innerHTML; titletag.replace(' ',' '); var tytul=document.getElementsByClassName('title'); var ft=document.getElementsByClassName('barrier__heading-serif'); if (tytul.length <= 0) { tytul = 'Title Class does not exist!'; } else { tytul=document.getElementsByClassName('title')[0].innerText; } if (titletag.length <= 0) { titletag = 'There is no <title> tag on this page!'; } else { titletag=document.getElementsByTagName('title')[0].innerHTML; } if (ft.length <=0) { ft =''; } else { ft = '\nFT Title: '   document.getElementsByClassName('barrier__heading-serif')[0].innerHTML; } function clearCache(){window.open(document.location   '?ClearCache=true', '_self');}; function clearCache2(){location.reload(true)}; function clearCookies(){var a,b,c,e,f;f=0; a=document.cookie.split('; '); for(e=0;e<a.length&&a[e];e  ){ f  ; for(b='.' location.host;b;b=b.replace(/^(?:\.|[^\.] )/,'')){ for(c=location.pathname;c;c=c.replace(/.$/,'')){ document.cookie=(a[e] '; domain=' b '; path=' c '; expires=' new Date((new Date()).getTime()-1e11).toGMTString());}}} alert('Expired ' f ' cookies'); }; function showCookies(){var c=document.cookie; if (c==''){alert('This site didn\'t give you any cookies at all.\nNot a single one!'); }else{ w=window.open('','Links','scrollbars,resizable,width=400,height=600');w.document.write(c); }}; function cancel() {document.getElementById('mymenu').remove();}; function info(){alert('by Dan')}; /* Create our stylesheet */ var style = document.createElement('style'); style.innerHTML = '#mymenu a:link{color:#00FF00;text-decoration:none;font-size: 12px;border:0}'   '#mymenu a:hover{color:#0000FF;text-decoration:underline;}'   '#mymenu {font-size:12px;font-family:arial,verdana,sans;}'   '#mymenu .yellow a:link{color:yellow}'  '#mymenu img{height: 14px; margin-left: auto; margin-right: auto;}'  '#mymenu .x{font-size: 20px; text-align:right;}'   '#mymenu textarea{font-size: 10px; height:16px; padding:3px 3px; border-radius:5px}'  'td {border: 0;}'   'td.x {vertical-align:top; text-align:right; font-size:20px; color:#F00}'   'td, th {text-align: left; padding: 1px 1px;}' ; /* Get the first script tag */ var ref = document.querySelector('script'); /* Insert new styles before the first script tag */ ref.parentNode.insertBefore(style, ref); block_to_insert = document.createElement('div'); block_to_insert.id = 'mymenu'; block_to_insert.innerHTML = '<table width=100%><tr><td> </td><td><center><font color=#FF0000>Paywall Penetration Tester:</font></center></td><td class=x><font color=red size= 3><a href=# onClick=cancel();return false; title=Close>×</a></font></td></tr></table> <table><tr><td><b><font size=-1>Title: </td><td></b> <textarea rows=1 cols=80>'  titletag  '



    ➽➽ 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(/\?.+$/,"")); })();
 
 
 
    ➽➽ Convert URL - ASCII to UTF-8 =

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

javascript:(function(x,y){if(!window.click){window.click=!0,document.body.style.cursor='crosshair';var cps=prompt('Autoclicker CPS: (Under 200 recommended)');if(!cps||isNaN(cps)?(alert('You entered something wrong. Try running the script again.'),end()):alert('Autoclicker activated at ' cps ' CPS! Do [ctrl e] to stop.'),addEventListener('mousemove',e=>{x=e.clientX,y=e.clientY}),addEventListener('keydown',e=>{'e'===e.key&&e.ctrlKey&&(alert('Autoclicker deactivated! Click the bookmark again to reactivate!'),end())}),window.click)var int=setInterval(function(){var e=document.elementFromPoint(x,y);e&&e.click()},1e3/cps);function end(){clearInterval(int),window.click=!1,document.body.style.cursor='default'}}})();
 
 
 
    ➽➽  Autoscroll =

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

OR

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


 
    ➽➽ 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);



    ➽➽ Text analytics - Shows number of words , Char count =

javascript:!function(){function e(e){return e&&""!==e?(e=e.trim(),e=e.replace(/\s /gi," "),e=e.replace(/[^a-zA-Z0-9 ]/gi,""),e.split(" ")):0}var t=function(t){var n=e(t)||[],r=t.length;if(0==n.length)return null;var i=0;n.forEach(function(e){i =e.length}),i/=n.length;var o=n.reduce(function(e,t){return e.length<=t.length?e:t}),a=n.reduce(function(e,t){return e.length>=t.length?e:t});return{wordCount:n.length,charCount:r,minWord:o,maxWord:a,avgLen:i}},n=document.createElement("div");n.setAttribute("style","color:black;        position:fixed;        left:5%;        top:5%;        width:150px;        height:auto;        font-size:14px;        z-index:10000;        background:white;        border-radius:0px;        border:1px solid grey;        padding:5px 2px 5px 4px;"),n.setAttribute("id","analyticsbox");var r="";window.getSelection&&(r=window.getSelection().toString());var i=t(r),o=document.createElement("div");o.setAttribute("style","margin:5px;        font-family:serif;        line-height:1.2em;        font-size:16px;"),null==i?o.innerHTML="No text selected.<br/>Select some text and click the bookmark to run text analysis.":(o.innerHTML="Words: " i.wordCount "<br/>",o.innerHTML ="Chars: " i.charCount "<br/><br/>",o.innerHTML ="<span>Advanced Lengths</span><br/><br/>",o.innerHTML ="Avg Word: " i.avgLen "<br/>",o.innerHTML ="Min Word: " i.minWord.length "<br/>",o.innerHTML ="Max Word: " i.maxWord.length "<br/>"),n.appendChild(o);var a=document.createElement("div");a.setAttribute("style","        color:black;        position:absolute;        right:6px;        top:5px;        width:auto;        font-size:14px;        text-align:right;        font-family:Arial, sans-serif;        cursor:pointer;"),a.appendChild(document.createTextNode("X")),a.setAttribute("id","textAnalyticsClose"),n.appendChild(a),a.addEventListener("click",function(){n.style.display="none"},!1),document.body.appendChild(n)}();



    ➽➽ 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)}}}})()
 
 
 
    ➽➽ Base64 to text = 

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

javascript:s=document.getSelection();for(i=0;i<frames.length;i  ){if(s)break;s=frames[i].document.getSelection();}if(!s)void(s=prompt('Enter search terms for Wikipedia',''));wikiw=open('http://en.wikipedia.org/' (s?'w/wiki.phtml?search=' escape(s):''));wikiw.focus();



    ➽➽ Reddit to Teddit =

javascript: "i.reddit.com"===document.location.hostname||"old.reddit.com"===document.location.hostname||"amp.reddit.com"===document.location.hostname||"reddit.com"===document.location.hostname||"www.reddit.com"===document.location.hostname?document.location="https://teddit.net"+document.location.pathname:alert("Invalid domain! This bookmarklet only works with Reddit.com");


 
     ➽➽ 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.')}

 
 
    ➽➽  Reddit Video DL (Bypass NSFW LogIn) = 

javascript:(function(){ window.open('https://viddit.red/?url=%27+location.href);%20})();
 
 
 
    ➽➽ IMDB - Open Directory Google Search =

javascript: if (document.URL.indexOf('imdb.com/title/') > -1) { var film = document.getElementsByTagName('H1')[0].innerText; var film2=film.split(' ').join('_');var film3=film.split(' ').join('');var url='https://www.google.com/search?q="parent directory" mp4 OR AVI OR WMV OR MOV OR FLV "'   film  '" OR "'   film2   '" OR "'   film3   '" -html -htm -shtml -phtml -php -buy -aspx -jsp -asp -cgi -pdf -ftp -unknownsecret&num=100&filter=0';window.open(url,'_self'); } else { alert('You must be on an IMDB page for this tool!\nRedirecting you now... try again!'); open('https://www.imdb.com/title/tt0031381/?ref_=nv_sr_1'); }



    ➽➽ IMDb Searcher - Selected Word =

javascript:(function(){    s=document.selection?document.selection.createRange().text:window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection():'';    if(s==''){      s=prompt('No text selected. Enter the title you want to search for:','');    }    if(s){      window.open('https://www.imdb.com/search/title/?title_type=feature,tv_movie,documentary,short&title=' s,  '_blank')    };  })()



    ➽➽ IMDb To Wiki =

javascript:function imdb2wp(currentURL) {newURL = currentURL.replace(/. imdb.com\/.*?\/(. ?)\/.*/,"http://learningsparql.com/cgi/imdb2wp.cgi?imdbID=$1"); window.location.href = newURL; }; imdb2wp(location.href)



    ➽➽ 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://www.2embed.to/embed/imdb/movie?id=
https://yaps.cc/play/movies?id=

 
 
    ➽➽ Imdb - Redirect To Technical Specifications =

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

OR
Replace technical WITH alternateversions



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

javascript:(function(){var v='3efe62398a5bdbcccca5d4d2273eb0ec9befd2f1/yt6.js',y='youtube.com/',w=window,d=w.document,h=d.location.href,yt6=w.yt6||{},yt6d=w.yt6d||{};if(yt6d.loaded>=4)return void 0;if(h.split(y 'watch')[1]||h.split(y 'shorts')[1]||h.split(y 'embed')[1]||h.split('/base.j')[1]=='s'){var id='snarls_player',e='script',q;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';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=['js','rawcdn.githack','cdn.rawgit','js'];for(j,x,i=o.length;i;j=Math.floor(Math.random()*i),x=o[--i],o[i]=o[j],o[j]=x);if(yt6d.src==-1)o.splice(0,0,'raw.githubusercontent');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()};yt6d.src=1;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};})()/*2022-10-05-0634*/


 
    ➽➽ Youtube load full playlist & export to csv =
https://github.com/vitto4/yt-playlist-bookmarklet

javascript:(function(){function getOffset(){for(var e=document.getElementsByClassName("yt-simple-endpoint style-scope yt-formatted-string"),t=document.getElementsByClassName("yt-simple-endpoint style-scope ytd-playlist-video-renderer"),n=0,o=0;o<t.length;o  )o<e.length&&e[o].parentNode.outerHTML.toString().includes("style-scope ytd-channel-name complex-string")||o>=e.length||(n =1);return n}function getTitlesCsv(){for(var e=document.getElementsByClassName("yt-simple-endpoint style-scope ytd-playlist-video-renderer"),t=document.getElementsByClassName("yt-simple-endpoint style-scope yt-formatted-string"),n=getOffset(),o="",i=0;i<e.length;i  ){let l=new URL(e[i].href),r=new URLSearchParams(l.search),s=r.get("index"),a=r.get("v");1==e[i].parentNode.parentNode.childNodes[3].childNodes[3].childNodes[1].hidden?(o =s ", " a ', True, "Unknown channel", "Unknown link", "' e[i].innerHTML.trim() '"\n',n-=1):"playlist-video-renderer-style-recommended-video"!=e[i].parentNode.parentNode.parentNode.parentNode.parentNode.styleType&&(o =s ", " a ', False, "' t[i n].innerHTML.trim() '", "' t[i n].href '", "' e[i].innerHTML.trim() '"\n')}return o}function saveTextToFile(e,t){var n=new Blob([e],{type:"text/plain"}),o=t,i=document.createElement("a");i.download=o,i.innerHTML="My Hidden Link",window.URL=window.URL||window.webkitURL,i.href=window.URL.createObjectURL(n),i.onclick=destroyClickedElement,i.style.display="none",document.body.appendChild(i),i.click()}function destroyClickedElement(e){document.body.removeChild(e.target)}function metadata(){let e=new URL(location.href.toString());return"Playlist ID : " new URLSearchParams(e.search).get("list") "\nArchived on : " Date.now().toString() "\n"}function fileName(){return playlistTitle=document.getElementsByClassName("style-scope yt-dynamic-sizing-formatted-string")[1].innerHTML.trim(),currentDate=(new Date).toLocaleDateString("en-CA"),playlistTitle " - " currentDate}function startObserving(e){const t=document.querySelector('ytd-section-list-renderer[page-subtype="playlist"]');t&&e.observe(t,{childList:!0,subtree:!0})}function getLastVideo(){var e=document.getElementsByClassName("yt-simple-endpoint style-scope ytd-playlist-video-renderer"),t=e[e.length-1];let n=!1;for(let o=0;o<e.length;o  )"playlist-video-renderer-style-recommended-video"!=e[o].parentNode.parentNode.parentNode.parentNode.parentNode.styleType||n||(t=e[o-1],n=!0);return t}function scrollToLastVideo(){getLastVideo().scrollIntoView({behavior:"smooth"})}function startScroll(){let e,t=document.documentElement.scrollHeight;const n=new MutationObserver((o=>{Date.now();for(const i of o)if("childList"===i.type){const o=document.documentElement.scrollHeight;t!=o&&(clearTimeout(e),scrollToLastVideo(),t=o,e=setTimeout((()=>{n.disconnect(),mainArchiveLogic()}),8e3))}}));startObserving(n),scrollToLastVideo()}function mainArchiveLogic(){var e="";e =metadata() "index, id, title, artist, artistUrl, isUnavailable\n" getTitlesCsv(),fName=fileName(),fName =".csv",null==e&&""==e||saveTextToFile(e,fName)}function main(){window.confirm("Your playlist is going to be exported to a CSV file.\nMake sure you've followed the instructions over at https://github.com/vitto4/yt-playlist-bookmarklet\n\nClick « Ok » to enable auto-scrolling to the end of the playlist, click « Cancel » otherwise.")?startScroll():mainArchiveLogic()}main();}());

 
 
    ➽➽ Youtube - Bypass Country/Age Restrictions =

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 () {if (window.location.toString().includes('www.youtube.com/watch?v')) { window.open('https://www.youtube-nocookie.com/embed/'   window.location.toString().split('=')[1]) }})()
 
 
 
     ➽➽ Youtube Thumbnail =
javascript:open("https://i.ytimg.com/vi/"+location.search.match(/v=([^&]+)/)[1]+"/maxresdefault.jpg");
 
 
 
    ➽➽ Create a 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());}


 
    ➽➽ 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);})()
 
 
 
 
------
 
 
entry-w92e9
 
 

Comments

Popular posts from this blog

Movie & TV Series Server List

Zibrozik - T & S

Sites

Software

Android Apps & Games

Travel

Film

Boidesh