Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Last active October 8, 2018 06:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unitycoder/bd5aece4ea2e2a342e6a0b0fe4b097d4 to your computer and use it in GitHub Desktop.
Save unitycoder/bd5aece4ea2e2a342e6a0b0fe4b097d4 to your computer and use it in GitHub Desktop.
GreaseMonkey: Stay in Old Unity Asset Store
// ==UserScript==
// @name Force Old Unity Asset Store
// @version 2
// @include https://www.assetstore.unity3d.com/#!/content/*
// @include https://assetstore.unity.com/packages/*
// @run-at document-start
// @grant none
// ==/UserScript==
// https://unitycoder.com/blog/2018/09/23/browser-plugin-stay-in-old-asset-store/
if (window.location.toString().indexOf("https://assetstore.unity.com/packages/")>-1)
{
// arriving to new store, jump to old.. FAST!
var ids=window.location.toString().split('-');
if (ids!=null && ids.length>0)
{
// take asset number
window.location = "https://www.assetstore.unity3d.com/en/?stay#!/content/"+ids[ids.length-1];
}
}else{
// we are already in old store
window.location.search = "?stay-a-while...stay-forever!";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment