{"id":947,"date":"2023-04-21T10:49:49","date_gmt":"2023-04-21T14:49:49","guid":{"rendered":"https:\/\/www.digitaldatatactics.com\/?p=947"},"modified":"2023-04-25T18:00:16","modified_gmt":"2023-04-25T22:00:16","slug":"silly-launch-builder-chime","status":"publish","type":"post","link":"https:\/\/www.digitaldatatactics.com\/index.php\/2023\/04\/21\/silly-launch-builder-chime\/","title":{"rendered":"Silly Launch Builder Chime"},"content":{"rendered":"\n<p>I spend way too much time on a daily basis waiting for Launch libraries to build- on particularly bloated libraries, I&#8217;ve had it take up to two minutes. And, with my ADHD, I get too easily distracted during that wait time. It&#8217;s a major productivity killer.<\/p>\n\n\n\n<p>So I figured out I can throw this code in as a <a href=\"https:\/\/developer.chrome.com\/docs\/devtools\/console\/live-expressions\/\" data-type=\"URL\" data-id=\"https:\/\/developer.chrome.com\/docs\/devtools\/console\/live-expressions\/\" target=\"_blank\" rel=\"noreferrer noopener\">Live Expression<\/a> in my Chrome Console:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>if (document.location.href.indexOf(&quot;data-collection\/tags\/&quot;) != -1 || document.location.href.indexOf(&quot;reactor-lens\/tags\/&quot;)!= -1) {window.launchChimer = window.launchChimer || false;if (document.querySelectorAll(&quot;.library .spectrum-CircleLoader.spectrum-CircleLoader--small&quot;).length &gt; 0 && !window.launchChimer){window.launchChimer = true} else if (document.querySelectorAll(&quot;.library .spectrum-CircleLoader.spectrum-CircleLoader--small&quot;).length == 0 && window.launchChimer == true) {var snd = new Audio(&quot;http:\/\/soundbible.com\/grab.php?id=1599&type=wav&quot;);snd.play();window.launchChimer = false}}<\/code><\/pre><\/div>\n\n\n\n<p>Like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.digitaldatatactics.com\/wp\/wp-content\/uploads\/2023\/04\/image-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"419\" src=\"https:\/\/www.digitaldatatactics.com\/wp\/wp-content\/uploads\/2023\/04\/image-7-1024x419.png\" alt=\"\" class=\"wp-image-949\" srcset=\"https:\/\/www.digitaldatatactics.com\/wp\/wp-content\/uploads\/2023\/04\/image-7-1024x419.png 1024w, https:\/\/www.digitaldatatactics.com\/wp\/wp-content\/uploads\/2023\/04\/image-7-300x123.png 300w, https:\/\/www.digitaldatatactics.com\/wp\/wp-content\/uploads\/2023\/04\/image-7-768x314.png 768w, https:\/\/www.digitaldatatactics.com\/wp\/wp-content\/uploads\/2023\/04\/image-7.png 1056w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>And it chimes when the loading icon stops spinning.<\/p>\n\n\n\n<p>I got the sound file from <a rel=\"noreferrer noopener\" href=\"https:\/\/soundbible.com\/1599-Store-Door-Chime.html\" data-type=\"URL\" data-id=\"https:\/\/soundbible.com\/1599-Store-Door-Chime.html\" target=\"_blank\">soundbible<\/a>&#8211; you could replace it with whatever you want. Originally I had it pull from a sound that already exists on any mac (as<a rel=\"noreferrer noopener\" href=\"https:\/\/stackoverflow.com\/questions\/35497243\/how-to-make-a-short-beep-in-javascript-that-can-be-called-repeatedly-on-a-page\" data-type=\"URL\" data-id=\"https:\/\/stackoverflow.com\/questions\/35497243\/how-to-make-a-short-beep-in-javascript-that-can-be-called-repeatedly-on-a-page\" target=\"_blank\"> found on stack overflow<\/a>) but it made the script ugly and long.  <\/p>\n\n\n\n<p>If it isn&#8217;t working for you, double check which frame your Live Expression is trying to be on. For me, it automatically went to the &#8220;Main Content&#8221; frame, which is where it works best, but it sounds like for some folks, you may need to manually select it:<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.digitaldatatactics.com\/wp\/wp-content\/uploads\/2023\/04\/image-8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"408\" height=\"201\" src=\"https:\/\/www.digitaldatatactics.com\/wp\/wp-content\/uploads\/2023\/04\/image-8.png\" alt=\"\" class=\"wp-image-954\" srcset=\"https:\/\/www.digitaldatatactics.com\/wp\/wp-content\/uploads\/2023\/04\/image-8.png 408w, https:\/\/www.digitaldatatactics.com\/wp\/wp-content\/uploads\/2023\/04\/image-8-300x148.png 300w\" sizes=\"(max-width: 408px) 100vw, 408px\" \/><\/a><\/figure>\n\n\n\n<p>There are better ways to do this. I know this. If I had more hours in the day, I could even make a decent Chrome extension out of it. But this works for now, and I&#8217;ve already held on to this for months without blogging it, waiting for time to make it cooler, and it would appear that time is never going to come, so&#8230; here&#8217;s my imperfect solution. <\/p>\n\n\n\n<p>Consider this a beta. I fully expect something about it will not work in some situation. Please let me know how it goes for you. Or if anyone wants to take it and improve upon it, I&#8217;d appreciate it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I spend way too much time on a daily basis waiting for Launch libraries to build- on particularly bloated libraries, I&#8217;ve had it take up to two minutes. And, with my ADHD, I get too easily distracted during that wait time. It&#8217;s a major productivity killer. So I figured out I can throw this code &#8230; <a title=\"Silly Launch Builder Chime\" class=\"read-more\" href=\"https:\/\/www.digitaldatatactics.com\/index.php\/2023\/04\/21\/silly-launch-builder-chime\/\" aria-label=\"Read more about Silly Launch Builder Chime\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,44,18],"tags":[45,69],"_links":{"self":[{"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/posts\/947"}],"collection":[{"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/comments?post=947"}],"version-history":[{"count":5,"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/posts\/947\/revisions"}],"predecessor-version":[{"id":955,"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/posts\/947\/revisions\/955"}],"wp:attachment":[{"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/media?parent=947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/categories?post=947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.digitaldatatactics.com\/index.php\/wp-json\/wp\/v2\/tags?post=947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}