javascript:(function(){
alert("Click the chat container you want to start from.");
function handler(ev) {
ev.preventDefault();
ev.stopPropagation();
const start = ev.target;
document.removeEventListener('click', handler, true);
let el = start;
while (el && el !== document.documentElement) {
el.style.setProperty('overflow','visible','important');
el.style.setProperty('overflow-y','visible','important');
el.style.setProperty('overflow-x','visible','important');
el.style.setProperty('max-height','none','important');
el.style.setProperty('height','auto','important');
el.style.setProperty('max-width','none','important');
el.style.setProperty('width','auto','important');
el = el.parentElement;
}
}
// Capture the NEXT click anywhere
document.addEventListener('click', handler, true);
})();
Follow these steps to add a custom JavaScript bookmarklet to Safari on iOS:
javascript:.Here's the structure all bookmarklets follow:
javascript:(function(){
/* your code here */
})();
You can paste any valid JavaScript inside that wrapper.