10
2015
AssetStoryBuddy (GreaseMonkey script)
Finally started small helper script for asset store, because the website is not exactly user friendly and missing many features..
Note. This is first version, quite limited still but has potential 🙂
Features:
– Sorts search results by price! (free ones first)
– Keeps previous search string in the search input field!
Usage:
– Go to asset store page
– Search something
– Press F5 after search results, wait couple seconds, items get arranged by price!
TODO:
– Needs some way to detect when page(ajax) has finished loading, then can sort. Current version just waits few seconds with TimeOut..
—
BEFORE:
https://www.assetstore.unity3d.com/en/#!/search/volumetric
—
AFTER: (with “AssetStoreBuddy”+GreaseMonkey)
—
Source: *GreaseMonkey browser plugin required
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name AssetStoreBuddy | |
| // @namespace unitycoder.com | |
| // @include https://www.assetstore.unity3d.com/en/#!/search/* | |
| // @version 1 | |
| // @grant none | |
| // ==/UserScript== | |
| // currently need to press F5 to run these | |
| $(window).load(function(){ | |
| // TODO: use other methods to findout page finished | |
| setTimeout(InitAssetStoreBuddy, 5000); | |
| }); | |
| function InitAssetStoreBuddy() | |
| { | |
| // take previous search value | |
| document.getElementById("searchInput").value = location.href.substring(location.href.lastIndexOf("/")+1,999); | |
| // TODO: create sort by price button | |
| SortByPrice(); | |
| } | |
| function SortByPrice() | |
| { | |
| var div = document.querySelector('#packageList'); | |
| var divs = div.querySelectorAll('.littleblock'); | |
| var titleDiv = document.querySelector('#cattitle'); | |
| var nodesArray = [].slice.call(divs); | |
| nodesArray.sort(function (a, b) { | |
| var price1 = a.getElementsByClassName('price')[0].innerHTML.replace(/\D/g,''); | |
| var price2 = b.getElementsByClassName('price')[0].innerHTML.replace(/\D/g,''); | |
| return +price1 – +price2; | |
| }); | |
| $('#packageList').empty().append(nodesArray); | |
| } |
—
Related Posts
1 Comment + Add Comment
Leave a comment to mgear
Recent posts
- Testing Unity AI Beta
- Ways to Support UnityCoder Development
- Using UI Slider to Create 5-Star Rating Element
- Game Music Library For Unity (editor plugin)
- Fontastic : Easily Test Fonts in Unity Editor!
- GeoTiff Importer & Terrain Generator for Unity
- Create Baked DropShadow for UI images
- .JP2 Ortho Image Converter to PNG/JPG/TIFF
- Convert LAS/LAZ/PLY pointclouds to GLTF (GLB) Point Meshes (standalone converter)
- Detect SRP (URP or HDRP) with Assembly Definition Version Defines
- [LudumDare57] Theme: Depths
- MotionVector Effect: Object “disappears” when paused
Recent Comments
- on [Asset Store] PolygonCollider2D Optimizer
- on Trajectory Test Scene 2.0
- on Vector3 maths for dummies!
- on UnityHub 3.6.0: Remove Version Control & Cloud Dashboard columns
- on Using RenderDoc with Unity (graphics debugger)
- on UI Scroll View automatic Content height
- on [Asset Store] Point Cloud Viewer & Tools
- on [Asset Store] Point Cloud Viewer & Tools
Coin:
CUgDSbRqFcAumDSAcdKDvuXsw26VdkJe8C8WGUQHBAGS
An article by














^this is no longer useful, since asset store has proper filters now!
https://www.assetstore.unity3d.com/en/