Gmail conversation view toggle bookmarketlet / favelet / "scriptlet" Gmail conversation view toggle bookmarketlet / favelet / "scriptlet" javascript javascript

Gmail conversation view toggle bookmarketlet / favelet / "scriptlet"


I'll look into the gmail js and make a bookmarklet :P

Edit: seems the js is obfuscated A lot, copying the function from the original js is gonna be hard...

I'll check what the html changes are between both views and write a js function myself to apply those changes.

I went and instead made it a bit different, I wrote some js that does actually the thing that you would do yourself(it simulates going to settings and changing them).

I made a jsfiddle with a link that can be dragged into the bookmarks bar:

https://jsfiddle.net/randomengineer/0nc4hajp/4/

The bookmarklet code:

javascript:window.location.hash = 'settings/general';a = () => document.querySelector('tbody tr:nth-child(13) input:not(:checked)');b = setInterval(() => {    if(a() != null) {        clearInterval(b);        a().click();        document.querySelector('[guidedhelpid=save_changes_button]').click();    }}, 5);


Saved settings are just to reload the JS code in the way you prefer, so you are correct it can be made easy to change. seahorsepip did a good one on it, if you need a custom grease script to install to your chrome i would be glad to help.


Love the solution by seahorsepip. I combined it with the "Shortcut Manager" Chrome extension (http://www.makeuseof.com/tag/shortcut-manager-assign-hotkeys-to-various-browser-actions-chrome/) and now I can toggle with a keyboard shortcut!