* AND Blacksky AND Eurosky (mu.social) AND Northsky and probably all the Skies. These bookmarklets are not site specific so you can run them while on any browser based client to be honest.
(and yes, at the time that I’m posting this, for some reason the code blocks look best in dark mode … I need to fix some CSS)
Create a folder in your bookmarks bar and create bookmarks for:
Set all to “Off”
javascript:(function(){var s='button,[role="button"],[role="menuitem"],[role="radio"],[role="tab"],a',c=0;[].forEach.call(document.querySelectorAll(s),function(el){var t=(el.textContent||'').replace(/\s+/g,' ').trim().toLowerCase();if(t==='off'){el.click();c++;}});alert('Matched '+c+' element(s).');})();
Set all to “Show Badge“
javascript:(function(){var s='button,[role="button"],[role="menuitem"],[role="radio"],[role="tab"],a',c=0;[].forEach.call(document.querySelectorAll(s),function(el){var t=(el.textContent||'').replace(/\s+/g,' ').trim().toLowerCase();if(t==='show badge'||t.indexOf('show badge')>-1){el.click();c++;}});alert('Matched '+c+' element(s).');})();
Set all to “Warn“
javascript:(function(){var s='button,[role="button"],[role="menuitem"],[role="radio"],[role="tab"],a',c=0;[].forEach.call(document.querySelectorAll(s),function(el){var t=(el.textContent||'').replace(/\s+/g,' ').trim().toLowerCase();if(t==='warn'||t.indexOf('warn')>-1){el.click();c++;}});alert('Matched '+c+' element(s).');})();
Set all to “Hide”
javascript:(function(){var s='button,[role="button"],[role="menuitem"],[role="radio"],[role="tab"],a',c=0;[].forEach.call(document.querySelectorAll(s),function(el){var t=(el.textContent||'').replace(/\s+/g,' ').trim().toLowerCase();if(t==='hide'){el.click();c++;}});alert('Matched '+c+' element(s).');})();
Or better yet, you want a single bookmarklet and to then be able to make your selection add a bookmark with the following javascript:
javascript:(function(){if(document.getElementById('__lblPicker')){return;}var matchers={'off':function(t){return t==='off';},'show badge':function(t){return t==='show badge'||t.indexOf('show badge')>-1;},'warn':function(t){return t==='warn'||t.indexOf('warn')>-1;},'hide':function(t){return t==='hide';}};var box=document.createElement('div');box.id='__lblPicker';box.style.cssText='position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2147483647;background:#fff;color:#111;font:14px/1.4%20system-ui,sans-serif;border:1px%20solid%20#ccc;border-radius:10px;box-shadow:0%206px%2024px%20rgba(0,0,0,.2);padding:16px;width:220px;';var%20opts=['off','show%20badge','warn','hide'];var%20html='%3Cdiv%20style=%22font-weight:600;margin-bottom:10px;%22%3ESet%20all%20labels%20to:%3C/div%3E';opts.forEach(function(o,i){html+='%3Clabel%20style=%22display:block;margin:6px%200;cursor:pointer;%22%3E%3Cinput%20type=%22radio%22%20name=%22__lbl%22%20value=%22'+o+'%22'+(i===0?'%20checked':'')+'%3E%20'+o+'%3C/label%3E';});html+='%3Cdiv%20style=%22margin-top:12px;text-align:right;%22%3E%3Cbutton%20id=%22__lblCancel%22%20style=%22margin-right:8px;%22%3ECancel%3C/button%3E%3Cbutton%20id=%22__lblApply%22%3EApply%3C/button%3E%3C/div%3E';box.innerHTML=html;document.body.appendChild(box);function%20close(){var%20b=document.getElementById('__lblPicker');if(b)b.remove();}document.getElementById('__lblCancel').onclick=close;document.getElementById('__lblApply').onclick=function(){var%20sel=box.querySelector('input[name=%22__lbl%22]:checked');if(!sel){return;}var%20choice=sel.value,m=matchers[choice];var%20s='button,[role=%22button%22],[role=%22menuitem%22],[role=%22radio%22],[role=%22tab%22],a',c=0;[].forEach.call(document.querySelectorAll(s),function(el){var%20t=(el.textContent||'').replace(/\s+/g,'%20').trim().toLowerCase();if(m(t)){el.click();c++;}});close();alert('Set%20to%20%22'+choice+'%22:%20matched%20'+c+'%20element(s).%20Verify%20changes%20are%20saved.');};})();

