Javascript Tricks.

Change nosy elements
tip=function(t,a,i)
{
 var m,l;
 m= e=>
{
 var i,s;
for(i in a)
 s=e.getAttribute(i);
if(typeof s=="string")e.setAttribute(i, s.replace(a[i][0],a[i][1]));
};
 document.querySelectorAll(t).forEach(m);
 l=new MutationObserver( l=>
{
 l.forEach( e=>
{
 e.addedNodes.forEach( e=>
{
 console.log(document.querySelector("img").matches("img"));
if(typeof e.matches=="function"
 &&e.matches(t))m(e);
 e.querySelectorAll(':scope '+t).forEach(m);
});
});
});
 l.observe(document, {attributes:false, childList:true, subtree:true});
};

tip("div", {src:["nots","moss"]});
Current JS-max(functionCallDepth)
 /* if there is none though, it will loop outside control... */
var i=0;try{var e=function(){i;i++;e()};e()}catch(E){console.warn(E.message+':',i)}
X,Y of Cursor:
var _pt=true;
window.addEventListener("keydown",e=>{
 if(e.ctrlKey){_pt=undefined;}});
document.addEventListener('mousemove',function(i){
 _pt&&console.log('X:'+i.pageX.toString()+' Y:'+i.pageY.toString());})
Canvas Resizing.
/*to window*/
 canvas.style.width="100%"
 canvas.style.height="100%"
/*request a fullscreen*/
canvas.requestFullscreen()
Autoclicker...
tg$=false;i$=[];
window.addEventListener("keydown",e=>{
 if(e.ctrlKey){
  tg$=true;
  i$.forEach(i=>{clearInterval(i)});
  i$=[]}});
window.addEventListener("keyup",e=>{
 if(!e.ctrlKey){
  tg$=false}});
function click(t,x,y){
 function m(s){var e=document.createEvent("MouseEvent");
  e.initMouseEvent(s,true/*bubble*/,true/*canceable*/,window,1,0,0,x,y,
  false,false,false,false,0,null);
  return e;}
 t.dispatchEvent(m("mousedown"));
 t.dispatchEvent(m("mouseup"));
 t.dispatchEvent(m("click"))}
document.addEventListener("mouseup",e=>{
 tg$&&(()=>{
  let x=e.clientX;
  let y=e.clientY;
  console.log(e.target,x,y);
  i$.push(setInterval((()=>{click(e.target,x,y)}),10))})()})
COOKIES...
setInterval(()=>{
  tp='golden';
  var newShimmer=new Game.shimmer(tp);
  newShimmer.spawnLead=1;
  Game.gainLumps(100);
  if (Game.Has('Distilled essence of redoubled luck'))
   var newShimmer=new Game.shimmer(tp);},
 100);
setInterval(()=>{
  document.querySelectorAll('.shimmer').forEach(i=>{
   i.click();})},
 10);