Unity Asset Store - 96 Items Default

automatically switch to 96 items (new default from 24) on all store pages

  1. // ==UserScript==
  2. // @name Unity Asset Store - 96 Items Default
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.0
  5. // @description automatically switch to 96 items (new default from 24) on all store pages
  6. // @include https://assetstore.unity.com/*
  7. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
  8. // @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
  9. // @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
  10. // @author drhouse
  11. // @license CC-BY-NC-SA-4.0
  12. // @icon https://www.google.com/s2/favicons?domain=assetstore.unity.com
  13. // ==/UserScript==
  14. this.$ = this.jQuery = jQuery.noConflict(true);
  15. var $ = window.$;
  16. jQuery(function($){
  17.  
  18. $("#main-layout-scroller > div > div._2e1KM.-Xmiy > div:nth-child(2) > div > div > div > div > div:nth-child(2) > div._3MUQz._2yjoV._2gOgE._2pY0P._15jtN > div._3QbIX > div._3uUFj > div._3OCKh > div._2R7jo > div > div > div > div > div:nth-child(4)").click()
  19. $("#main-layout-scroller > div > div._2e1KM.-Xmiy > div:nth-child(2) > div > div._2wdXy > div > div > div > div.NvJBe > div:nth-child(2) > div > div.select-wrapper-v2 > div > div > div > div:nth-child(4)").click()
  20.  
  21. });