{"id":105,"date":"2015-06-10T14:48:22","date_gmt":"2015-06-10T14:48:22","guid":{"rendered":"http:\/\/www.clientcyde.com\/?p=105"},"modified":"2015-06-10T14:56:02","modified_gmt":"2015-06-10T14:56:02","slug":"spotify-web-client-minimized-mode-bookmarklet","status":"publish","type":"post","link":"https:\/\/www.clientcyde.com\/?p=105","title":{"rendered":"Spotify web client minimized mode bookmarklet"},"content":{"rendered":"I was playing around with casting spotify from Chrome to Chromecast, and disliked the cluttered interface here&#8217;s a bookmarklet that can be dragged to the bookmarks bar. \u00a0When clicked, it toggles the interface to show a more minimal look. \u00a0<br \/><br \/><a href=\"javascript:if (typeof spotTgShown == 'undefined') {var spotTgShown = true;};function spotTg() {if (spotTgShown){spotTgShown = false;spotSm();} else {spotTgShown = true;spotLg();}};function spotSm() {$('now-playing').setStyle('right', 'auto').setStyle('left', '0');$('main-nav').setStyle('visibility', 'hidden');$('main').setStyle('visibility', 'hidden');$('suggest-area').setStyle('visibility', 'hidden');$('now-playing-widgets').setStyle('visibility', 'hidden');$('now-playing').setStyle('width', '100%');$$('body').setStyle('overflow', 'hidden');$('wrapper').setStyle('min-width', '0px');};function spotLg() {$('now-playing').setStyle('left', 'auto').setStyle('right', '0');$('main-nav').setStyle('visibility', 'visible');$('main').setStyle('visibility', 'visible');$('suggest-area').setStyle('visibility', 'visible');$('now-playing-widgets').setStyle('visibility', 'visible');$('now-playing').setStyle('width', '');$$('body').setStyle('overflow', '');$('wrapper').setStyle('min-width', '');};spotTg();\">SpotMini<\/a><br \/><br \/><a href=\"http:\/\/www.clientcyde.com\/wp-content\/uploads\/2015\/06\/spotSm.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.clientcyde.com\/wp-content\/uploads\/2015\/06\/spotSm.png\" alt=\"spotSm\" width=\"701\" height=\"623\" class=\"alignnone size-full wp-image-106\" srcset=\"https:\/\/www.clientcyde.com\/wp-content\/uploads\/2015\/06\/spotSm.png 701w, https:\/\/www.clientcyde.com\/wp-content\/uploads\/2015\/06\/spotSm-300x267.png 300w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><\/a><br \/><br \/>Here&#8217;s the code:<pre>if (typeof spotTgShown == 'undefined') {<br \/> var spotTgShown = true;<br \/>};<br \/><br \/>function spotTg() {<br \/> if (spotTgShown){<br \/> spotTgShown = false;<br \/> spotSm();<br \/> } else {<br \/> spotTgShown = true;<br \/> spotLg();<br \/> }<br \/>};<br \/><br \/>function spotSm() {<br \/> $('now-playing').setStyle('right', 'auto').setStyle('left', '0');<br \/> $('main-nav').setStyle('visibility', 'hidden');<br \/> $('main').setStyle('visibility', 'hidden');<br \/> $('suggest-area').setStyle('visibility', 'hidden');<br \/> $('now-playing-widgets').setStyle('visibility', 'hidden');<br \/> $('now-playing').setStyle('width', '100%');<br \/> $$('body').setStyle('overflow', 'hidden');<br \/> $('wrapper').setStyle('min-width', '0px');<br \/>};<br \/><br \/>function spotLg() {<br \/> $('now-playing').setStyle('left', 'auto').setStyle('right', '0');<br \/> $('main-nav').setStyle('visibility', 'visible');<br \/> $('main').setStyle('visibility', 'visible');<br \/> $('suggest-area').setStyle('visibility', 'visible');<br \/> $('now-playing-widgets').setStyle('visibility', 'visible');<br \/> $('now-playing').setStyle('width', '');<br \/> $$('body').setStyle('overflow', '')<br \/> $('wrapper').setStyle('min-width', '');<br \/>};<br \/>spotTg();<\/pre><br \/><br \/>","protected":false},"excerpt":{"rendered":"<p>I was playing around with casting spotify from Chrome to Chromecast, and disliked the cluttered interface here&#8217;s a bookmarklet that can be dragged to the bookmarks bar. \u00a0When clicked, it toggles the interface to show a more minimal look. \u00a0Here&#8217;s the code:if (typeof spotTgShown == &#8216;undefined&#8217;) { var spotTgShown = true;};function spotTg() { if (spotTgShown){ &hellip; <a href=\"https:\/\/www.clientcyde.com\/?p=105\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Spotify web client minimized mode bookmarklet<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,30,28],"tags":[],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-bookmarklet","category-javascript","category-jquery"],"_links":{"self":[{"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=105"}],"version-history":[{"count":4,"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":110,"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=\/wp\/v2\/posts\/105\/revisions\/110"}],"wp:attachment":[{"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.clientcyde.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}