{"id":4813,"date":"2018-09-23T16:56:19","date_gmt":"2018-09-23T08:56:19","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=4813"},"modified":"2018-10-08T14:44:47","modified_gmt":"2018-10-08T06:44:47","slug":"browser-plugin-stay-in-old-asset-store","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2018\/09\/23\/browser-plugin-stay-in-old-asset-store\/","title":{"rendered":"Browser Plugin: Stay in Old Asset Store"},"content":{"rendered":"<p>Small snippet to use with GreaseMonkey-plugin,<br \/>\nwill stop old &amp; short url asset store links from re-directing into that horrible new asset store!<\/p>\n<p>*New v2: Now automatically redirects from new horrible store to good old store AND keeps the asset page!<\/p>\n<style>.gist table { margin-bottom: 0; }<\/style>\n<div style=\"tab-size: 8\" id=\"gist92063752\" class=\"gist\">\n<div class=\"gist-file\" translate=\"no\" data-color-mode=\"light\" data-light-theme=\"light\">\n<div class=\"gist-data\">\n<div class=\"js-gist-file-update-container js-task-list-container\">\n<div id=\"file-old-assetstore-js\" class=\"file my-2\">\n<div itemprop=\"text\"\n      class=\"Box-body p-0 blob-wrapper data type-javascript  \"\n      style=\"overflow: auto\" tabindex=\"0\" role=\"region\"\n      aria-label=\"old-assetstore.js content, created by unitycoder on 07:40AM on September 23, 2018.\"\n    ><\/p>\n<div class=\"js-check-hidden-unicode js-blob-code-container blob-code-content\">\n<p>  <template class=\"js-file-alert-template\"><\/p>\n<div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n  <svg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n    <span><br \/>\n      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.<br \/>\n      <a class=\"Link--inTextBlock\" href=\"https:\/\/github.co\/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a><br \/>\n    <\/span><\/p>\n<div data-view-component=\"true\" class=\"flash-action\">        <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\">    Show hidden characters<br \/>\n<\/a>\n<\/div>\n<\/div>\n<p><\/template><br \/>\n<template class=\"js-line-alert-template\"><br \/>\n  <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\"><br \/>\n    <svg aria-hidden=\"true\" data-component=\"Octicon\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n    <path d=\"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\"><\/path>\n<\/svg><br \/>\n<\/span><\/template><\/p>\n<table data-hpc class=\"highlight tab-size js-file-line-container\" data-tab-size=\"4\" data-paste-markdown-skip data-tagsearch-path=\"old-assetstore.js\">\n<tr>\n<td id=\"file-old-assetstore-js-L1\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n<td id=\"file-old-assetstore-js-LC1\" class=\"blob-code blob-code-inner js-file-line\">\/\/ ==UserScript==<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L2\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n<td id=\"file-old-assetstore-js-LC2\" class=\"blob-code blob-code-inner js-file-line\">\/\/ @name     Force Old Unity Asset Store<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L3\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n<td id=\"file-old-assetstore-js-LC3\" class=\"blob-code blob-code-inner js-file-line\">\/\/ @version  2<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L4\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n<td id=\"file-old-assetstore-js-LC4\" class=\"blob-code blob-code-inner js-file-line\">\/\/ @include  https:\/\/www.assetstore.unity3d.com\/#!\/content\/*<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L5\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n<td id=\"file-old-assetstore-js-LC5\" class=\"blob-code blob-code-inner js-file-line\">\/\/ @include  https:\/\/assetstore.unity.com\/packages\/*<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L6\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n<td id=\"file-old-assetstore-js-LC6\" class=\"blob-code blob-code-inner js-file-line\">\/\/ @run-at document-start<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L7\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n<td id=\"file-old-assetstore-js-LC7\" class=\"blob-code blob-code-inner js-file-line\">\/\/ @grant    none<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L8\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"8\"><\/td>\n<td id=\"file-old-assetstore-js-LC8\" class=\"blob-code blob-code-inner js-file-line\">\/\/ ==\/UserScript==<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L9\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"9\"><\/td>\n<td id=\"file-old-assetstore-js-LC9\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L10\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"10\"><\/td>\n<td id=\"file-old-assetstore-js-LC10\" class=\"blob-code blob-code-inner js-file-line\">\/\/ https:\/\/unitycoder.com\/blog\/2018\/09\/23\/browser-plugin-stay-in-old-asset-store\/<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L11\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"11\"><\/td>\n<td id=\"file-old-assetstore-js-LC11\" class=\"blob-code blob-code-inner js-file-line\">\n<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L12\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"12\"><\/td>\n<td id=\"file-old-assetstore-js-LC12\" class=\"blob-code blob-code-inner js-file-line\">if (window.location.toString().indexOf(&quot;https:\/\/assetstore.unity.com\/packages\/&quot;)&gt;-1)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L13\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"13\"><\/td>\n<td id=\"file-old-assetstore-js-LC13\" class=\"blob-code blob-code-inner js-file-line\">{<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L14\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"14\"><\/td>\n<td id=\"file-old-assetstore-js-LC14\" class=\"blob-code blob-code-inner js-file-line\">\t\/\/ arriving to new store, jump to old.. FAST!<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L15\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"15\"><\/td>\n<td id=\"file-old-assetstore-js-LC15\" class=\"blob-code blob-code-inner js-file-line\">  var ids=window.location.toString().split(&#39;-&#39;);<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L16\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"16\"><\/td>\n<td id=\"file-old-assetstore-js-LC16\" class=\"blob-code blob-code-inner js-file-line\">  if (ids!=null &amp;&amp; ids.length&gt;0)<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L17\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"17\"><\/td>\n<td id=\"file-old-assetstore-js-LC17\" class=\"blob-code blob-code-inner js-file-line\">  {<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L18\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"18\"><\/td>\n<td id=\"file-old-assetstore-js-LC18\" class=\"blob-code blob-code-inner js-file-line\">    \/\/ take asset number<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L19\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"19\"><\/td>\n<td id=\"file-old-assetstore-js-LC19\" class=\"blob-code blob-code-inner js-file-line\">  \twindow.location = &quot;https:\/\/www.assetstore.unity3d.com\/en\/?stay#!\/content\/&quot;+ids[ids.length-1];<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L20\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"20\"><\/td>\n<td id=\"file-old-assetstore-js-LC20\" class=\"blob-code blob-code-inner js-file-line\">  }<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L21\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"21\"><\/td>\n<td id=\"file-old-assetstore-js-LC21\" class=\"blob-code blob-code-inner js-file-line\">}else{<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L22\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"22\"><\/td>\n<td id=\"file-old-assetstore-js-LC22\" class=\"blob-code blob-code-inner js-file-line\">  \/\/ we are already in old store<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L23\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"23\"><\/td>\n<td id=\"file-old-assetstore-js-LC23\" class=\"blob-code blob-code-inner js-file-line\">\twindow.location.search = &quot;?stay-a-while&#8230;stay-forever!&quot;;<\/td>\n<\/tr>\n<tr>\n<td id=\"file-old-assetstore-js-L24\" class=\"blob-num js-line-number js-blob-rnum\" data-line-number=\"24\"><\/td>\n<td id=\"file-old-assetstore-js-LC24\" class=\"blob-code blob-code-inner js-file-line\">}<\/td>\n<\/tr>\n<\/table>\n<\/div><\/div>\n<\/p><\/div>\n<\/div><\/div>\n<div class=\"gist-meta\">\n        <a href=\"https:\/\/gist.github.com\/unitycoder\/bd5aece4ea2e2a342e6a0b0fe4b097d4\/raw\/be047623df2f7d611e4ff2d2a2f67c9db524cd64\/old-assetstore.js\" style=\"float:right\" class=\"Link--inTextBlock\">view raw<\/a><br \/>\n        <a href=\"https:\/\/gist.github.com\/unitycoder\/bd5aece4ea2e2a342e6a0b0fe4b097d4#file-old-assetstore-js\" class=\"Link--inTextBlock\"><br \/>\n          old-assetstore.js<br \/>\n        <\/a><br \/>\n        hosted with &#10084; by <a class=\"Link--inTextBlock\" href=\"https:\/\/github.com\">GitHub<\/a>\n      <\/div>\n<\/p><\/div>\n<\/div>\n<p>GreaseMonkey plugin for firefox: <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/greasemonkey\/\" target=\"_blank\" rel=\"noopener\">https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/greasemonkey\/<\/a><\/p>\n<p>Forum post: <a href=\"https:\/\/forum.unity.com\/threads\/browser-plugin-always-stay-in-the-old-asset-store.559633\/\" target=\"_blank\" rel=\"noopener\">https:\/\/forum.unity.com\/threads\/browser-plugin-always-stay-in-the-old-asset-store.559633\/<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Small snippet to use with GreaseMonkey-plugin, will stop old &amp; short url asset store links from re-directing into that horrible new asset store! *New v2: Now automatically redirects from new horrible store to good old store AND keeps the asset page! This file contains hidden [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"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":"Browser Plugin: Stay in Old Asset Store #unitytips","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":[3],"tags":[599,511,1000,537,261,28],"class_list":["post-4813","post","type-post","status-publish","format-standard","hentry","category-unity3d","tag-asset-store","tag-assetstore","tag-browser","tag-greasemonkey","tag-old","tag-plugin"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1fD","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4813","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=4813"}],"version-history":[{"count":3,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4813\/revisions"}],"predecessor-version":[{"id":4819,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4813\/revisions\/4819"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=4813"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=4813"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=4813"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}