console.log(
Array.from(document.querySelectorAll("p"))
.map(p => p.innerText)
.join("\n\n")
);
copy(
Array.from(document.querySelectorAll("p"))
.map(p => p.innerText)
.join("\n\n")
);
(function() {
document.querySelectorAll("*").forEach(el => {
try {
el.oncopy = el.oncut = el.onpaste = el.onselectstart = el.oncontextmenu = null;
el.style.userSelect = "text";
el.style.webkitUserSelect = "text";
el.style.MozUserSelect = "text";
el.style.pointerEvents = "auto";
} catch(e){}
});
// Replace body to remove listeners added with addEventListener
try {
const clone = document.body.cloneNode(true);
document.body.parentNode.replaceChild(clone, document.body);
} catch(e){}
console.log("π₯ Copy & selection unlocked!");
})();
javascript:(function(){
let text=[...document.querySelectorAll("p")].map(p=>p.innerText).join("\n\n");
if(navigator.clipboard && navigator.clipboard.writeText){
navigator.clipboard.writeText(text).then(()=>alert('β
Text copied to clipboard!'));
} else {
// fallback: download file
let blob=new Blob([text],{type:'text/plain'});
let a=document.createElement('a');
a.href=URL.createObjectURL(blob);
a.download='notes.txt';
a.click();
}
})();