This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.location.href = encodeURI(document.location.href) + '&as_sitesearch=reddit.com'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Hide page breaks in google docs */ | |
.kix-page-compact::before { | |
border-top: 0px !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.location.href = encodeURI(document.location.href) + '&as_eq=amazon'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var blog = window.location.hostname.match(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]+)\./)[1]; | |
var postId = window.location.pathname.match(/\/(\d+)\/?/)[1]; | |
window.location.href = `https://www.tumblr.com/blog/view/${blog}/${postId}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.location.href = 'https://wa.me?text=' + encodeURI(document.location.href); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var metaDescription = document.querySelector('meta[name="description"]') || document.querySelector('meta[property="og:description"]'); | |
var summary = [ | |
document.title, | |
metaDescription ? metaDescription['content'] : '', | |
document.location.href | |
].join('\n\n'); | |
alert(summary); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var link = '['+ document.title.replace("[","\\[").replace("]","\\]")+'|'+document.location.href+']'; | |
if (prompt('Press Enter or Click Ok to copy.', link)) { | |
var el = document.createElement('textarea'); | |
el.value = link; | |
el.setAttribute('readonly', ''); | |
el.style.position = 'absolute'; | |
el.style.left = '-9999px'; | |
document.body.appendChild(el); | |
document.getSelection().removeAllRanges(); | |
el.select(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var link = '['+ document.title.replace("[","\\[").replace("]","\\]")+'|'+document.location.href+']'; | |
if (prompt('Press Enter twice to copy', link)) { | |
var copy = function(e) { | |
if (e.code == 'Enter') { | |
var el = document.createElement('textarea'); | |
el.value = link; | |
el.setAttribute('readonly', ''); | |
el.style.position = 'absolute'; | |
el.style.left = '-9999px'; | |
document.body.appendChild(el); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var link = '[' + document.title.replace("[","\\[").replace("]","\\]") + '](' + document.location.href + ')'; | |
if (prompt('Press Enter twice to copy', link)) { | |
var copy = function(e) { | |
if (e.code == 'Enter') { | |
var el = document.createElement('textarea'); | |
el.value = link; | |
el.setAttribute('readonly', ''); | |
el.style.position = 'absolute'; | |
el.style.left = '-9999px'; | |
document.body.appendChild(el); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var copyToClipboard = function(str) { | |
var el = document.createElement('textarea'); | |
el.value = str; | |
el.setAttribute('readonly', ''); | |
el.style.position = 'absolute'; | |
el.style.left = '-9999px'; | |
document.body.appendChild(el); | |
document.getSelection().removeAllRanges(); | |
el.select(); | |
document.execCommand('copy'); |
NewerOlder