Search Unity

"Compare assets" footer annoying to anyone else?

Discussion in 'Editor & General Support' started by OccularMalice, Aug 21, 2021.

  1. OccularMalice

    OccularMalice

    Joined:
    Sep 8, 2014
    Posts:
    169
    In the last month or so this new footer appears on the asset store page saying "Compare assets". I guess it's when you're looking at an asset and Unity is offering a way to compare it to something else (e.g. two FPS kits). I find it very annoying because a) it takes up way too much space b) it appears on every page every time you visit an asset (logged in or not). Yes you can click the "X" to close it, but if you visit another asset page it's back. Would rather have this either a) go away forever if you click the "X" or b) stick it on the sidebar or top menu or something. Maybe it's just me but I find it an annoying UX in general. I might use it once in a blue moon, but not ever time I visit an asset page.
     
  2. netpost

    netpost

    Joined:
    May 6, 2018
    Posts:
    388
    It's not just you. I have been searching a way to get rid of this. There must be an option to disable this, but did not find it yet.
     
  3. hommfan

    hommfan

    Joined:
    Aug 20, 2020
    Posts:
    3
    Tampermonkey fixes it (Chrome addon) - below is a Tampermonkey script I wrote that disables the asset compare bar:

    Code (JavaScript):
    1. // ==UserScript==
    2. // @name         Disable Stupid Asset Compare Bar
    3. // @namespace    http://tampermonkey.net/
    4. // @version      0.1
    5. // @description  Disable Stupid Asset Compare Bar
    6. // @author       Someone
    7. // @match        https://assetstore.unity.com/*
    8. // @icon         https://www.google.com/s2/favicons?domain=unity.com
    9. // @grant        none
    10. // ==/UserScript==
    11.  
    12. (function() {
    13.     'use strict';
    14. debugger;
    15.     // set up the mutation observer
    16.     var observer = new MutationObserver(function (mutations, me) {
    17.         // `mutations` is an array of mutations that occurred
    18.         // `me` is the MutationObserver instance
    19.         var assetCompareBar = document.getElementsByClassName('uty-2-10-compBar-close');
    20.  
    21.         if (assetCompareBar.length > 0) {
    22.             assetCompareBar[0].click();
    23.             me.disconnect(); // stop observing
    24.             return;
    25.         }
    26.     });
    27.  
    28.     // start observing
    29.     observer.observe(document, {
    30.         childList: true,
    31.         subtree: true
    32.     });
    33. })();