and check that they work or sth I guess
Use the save thing when dod says that your doodle will not be lost.
Use the load thing when dod reloads the page & the doodle is lost.
The save should also be able to back up doodles that have expired.
The load from file can load saves formatted in the browser format from file.
Save doodleOkaay it seems like chrome has maybe added some protection against bookmarking code so if the bookmark has weird stuff like %7B or something, you might need to edit the bookmark and copypaste these pieces of code to the url parts of the bookmarks..
save script:
javascript:(function(){var curr="global"; var child = document.getElementById("game").firstElementChild; if(child.id == "stale_chain"){var parts = document.getElementsByClassName("explore_room")[0].href.split('/'); curr = parts[parts.length-1];} else {curr = child.dataset.groupId;} if(curr=="chainbreaking"){curr="EGb3cV8Bo8";} if(curr=="explore"){curr="global";} for (var key in window.localStorage){if (key === "backup." + curr){window.localStorage["recovery.backup"] = window.localStorage[key];}}})();
load script:
javascript:(function(){var data = document.getElementById("game").children[0].dataset;var curr = data.groupId;var chain = data.chainId;var recovered = window.localStorage["recovery.backup"];window.localStorage["backup." + curr] = recovered.replace(/^("[a-zA-Z\d-_]+\\)/, "\"" + chain + "\\");location.reload()})();
load file script:
javascript:(function(){var data=document.getElementById("game").children[0].dataset; var curr=data.groupId; var chain=data.chainId; var toLoc=function(fd){window.localStorage["backup."+curr]=fd.replace(/^([a-zA-Z\d-_]+\\)/,"\""+chain+"\\")+"\"";}; var div=document.createElement("div"); div.style.width="400px"; div.style.height="250px"; div.style.background="pink"; div.style.color="#1f1f1f"; div.style.position="absolute"; div.style.top="0px"; div.style.left="50%"; div.style.marginLeft="-200px"; div.style.paddingTop="50px"; div.style.textAlign="center"; div.style.zIndex="50"; div.innerHTML="Drag and drop save file here."; div.addEventListener('dragover',(e)=>{ e.stopPropagation(); e.preventDefault(); e.dataTransfer.dropEffect='copy'; }); div.addEventListener('drop',(e)=>{ e.stopPropagation(); e.preventDefault(); const reader=new FileReader(); reader.addEventListener('load',(ev)=>{ toLoc(ev.target.result); location.reload(); }); reader.readAsText(e.dataTransfer.files[0]); }); document.getElementById("content").appendChild(div); })();