{"id":5326,"date":"2021-03-09T13:44:49","date_gmt":"2021-03-09T11:44:49","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=5326"},"modified":"2021-03-09T14:18:27","modified_gmt":"2021-03-09T12:18:27","slug":"add-middle-mouse-button-support-to-assetstore-notifications-panel-greasemonkey-script","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2021\/03\/09\/add-middle-mouse-button-support-to-assetstore-notifications-panel-greasemonkey-script\/","title":{"rendered":"Add Middle Mouse Button support to AssetStore notifications panel (GreaseMonkey script)"},"content":{"rendered":"\n<p>AssetStore notifications window doesn&#8217;t allow you to open links into new tab (with middle mouse button).. for every link, you need to:<br><em>10 &#8211;<\/em> Click your profile icon to open drop down menu<br><em>20 &#8211;<\/em> Click notifications button<br><em>30 &#8211;<\/em> Scroll down the list to find interesting item<br><em>40 &#8211;<\/em> Click single item to navigate into that page (within current page)<br><em>50 &#8211;<\/em> Goto 10 (do everything again for each item and wait page loads..)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/03\/upload_2021-3-5_21-38-51.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"497\" height=\"566\" data-attachment-id=\"5327\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2021\/03\/09\/add-middle-mouse-button-support-to-assetstore-notifications-panel-greasemonkey-script\/upload_2021-3-5_21-38-51\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/03\/upload_2021-3-5_21-38-51.png?fit=497%2C566&amp;ssl=1\" data-orig-size=\"497,566\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"upload_2021-3-5_21-38-51\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/03\/upload_2021-3-5_21-38-51.png?fit=497%2C566&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/03\/upload_2021-3-5_21-38-51.png?resize=497%2C566&#038;ssl=1\" alt=\"\" class=\"wp-image-5327\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/03\/upload_2021-3-5_21-38-51.png?w=497&amp;ssl=1 497w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/03\/upload_2021-3-5_21-38-51.png?resize=263%2C300&amp;ssl=1 263w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Workaround:<\/strong><br>use browser plugin to inject middle mouse button events into those items!<br><br><strong>GreaseMonkey script:<\/strong><br><a rel=\"noreferrer noopener\" href=\"https:\/\/gist.github.com\/unitycoder\/4f3d3cc53ce1130f4ed6c9a108877904\" target=\"_blank\">https:\/\/gist.github.com\/unitycoder\/4f3d3cc53ce1130f4ed6c9a108877904<\/a><\/p>\n\n\n\n<p><strong>How it works:<\/strong><br>&#8211; custom script is injected into asset store page<br>&#8211; it overrides XMLHttpRequest to catch notification list contents when it gets requested (this is required, since the div itself doesnt contain enough info to create store link)<br>&#8211; from received JSON data, notification item key image id and asset store item ID is parsed<br>&#8211; then on 2nd pass, notification list items are iterated through, each div gets middle mouse button click event added, with url to be opened in new tab for that asset<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AssetStore notifications window doesn&#8217;t allow you to open links into new tab (with middle mouse button).. for every link, you need to:10 &#8211; Click your profile icon to open drop down menu20 &#8211; Click notifications button30 &#8211; Scroll down the list to find interesting item40 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5327,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1056,1135],"tags":[511,537,1199],"class_list":["post-5326","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-external-tools","category-javascript","tag-assetstore","tag-greasemonkey","tag-ux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2021\/03\/upload_2021-3-5_21-38-51.png?fit=497%2C566&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1nU","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=5326"}],"version-history":[{"count":2,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5326\/revisions"}],"predecessor-version":[{"id":5329,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/5326\/revisions\/5329"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/5327"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=5326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=5326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=5326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}