Hack for Tabby Cat on Google Chrome

#Tabby Cat
Google ChromeのエクステンションにTabby Catというものがあります。
Chromeで新しいタブを開くたびに新しいネコちゃんが現れるというギミックのエクステンションです。

![fe.PNG](https://qiita-image-store.s3.amazonaws.com/0/109034/ff4405f0-031d-50c7-306a-3ebc71633ae9.png)

こんな風に。

この猫ちゃんがデフォルトで他の動物を表示させるには課金制で$1から購入しなくてはならないのですが、Chromeの制御スクリプトをいじってほかの動物を一時的に表示させてみようという試みです。

1. 新しいタブをCtrl+Tで開いて
2. 右クリック+Iで検証タブを出し
3. Applicationタブを確認します
4. "allPets"のKey Valueを以下のスクリプトに変更します


```ruby:to_get_all_the_animals
[
	{
		"sku":"cat_tabbycat",
		"displayName":"Tabby Cat",
		"isCollected":true,
		"petType": {"sku":"cat_tabbycat","type":"cat","name":"Cat"}
	},
	{
		"kind":"chromewebstore#inAppProduct",
		"sku":"dog_lildoggo",
		"item_id":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"type":"inapp",
		"state":"ACTIVE",
		"prices":[{"valueMicros":"1000000","currencyCode":"USD","regionCode":"US"}],
		"petType":{"sku":"dog_lildoggo","type":"dog","name":"LilDoggo","displayName":"Lil Doggo"},
		"isCollected":true,
		"isComingSoon":false,
		"isNew":true,
		"localeData":[{"title":"Lil Doggo","description":"","languageCode":"en-US"}]
	},
	{
		"kind":"chromewebstore#inAppProduct",
		"sku":"penguin_tuxedobird",
		"item_id":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"type":"inapp",
		"state":"ACTIVE",
		"prices":[{"valueMicros":"1000000","currencyCode":"USD","regionCode":"US"}],
		"petType":{"sku":"penguin_tuxedobird","type":"penguin","name":"TuxedoBird","displayName":"Tuxedo Birb"},
		"isCollected":true,
		"isComingSoon":false,
		"isNew":false,
		"localeData":[{"title":"Tuxedo Birb","description":"","languageCode":"en-US"}]
	},
	{
		"kind":"chromewebstore#inAppProduct",
		"sku":"wildcat_leopard",
		"item_id":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"type":"inapp",
		"state":"ACTIVE",
		"prices":[{"valueMicros":"1000000","currencyCode":"USD","regionCode":"US"}],
		"petType":{"sku":"wildcat_leopard","type":"wildcat","name":"Leopard","displayName":"Wild Kitty"},
		"isCollected":true,
		"isComingSoon":false,
		"isNew":false,
		"localeData":[{"title":"Wild Kitty","description":"","languageCode":"en-US"}]
	},
	{
		"kind":"chromewebstore#inAppProduct",
		"sku":"bear_bear",
		"item_id":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"type":"inapp",
		"state":"ACTIVE",
		"prices":[{"valueMicros":"1000000","currencyCode":"USD","regionCode":"US"}],
		"petType":{"sku":"bear_bear","type":"bear","name":"Bear","displayName":"Bear Cub"},
		"isCollected":true,
		"isComingSoon":false,
		"isNew":false,
		"localeData":[{"title":"Bear Cub","description":"","languageCode":"en-US"}]
	},
	{
		"kind":"chromewebstore#inAppProduct",
		"sku":"turtle_tortoise",
		"item_id":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"type":"inapp",
		"state":"ACTIVE",
		"prices":[{"valueMicros":"1000000","currencyCode":"USD","regionCode":"US"}],
		"petType":{"sku":"turtle_tortoise","type":"turtle","name":"Tortoise","displayName":"Happy Tortoise"},
		"isCollected":true,
		"isComingSoon":false,
		"isNew":false,
		"localeData":[{"title":"Happy Tortoise","description":"","languageCode":"en-US"}]
	},
	{
		"kind":"chromewebstore#inAppProduct",
		"sku":"dog_classicdoggo",
		"item_id":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"type":"inapp",
		"state":"ACTIVE",
		"prices":[{"valueMicros":"1000000","currencyCode":"USD","regionCode":"US"}],
		"petType":{"sku":"dog_classicdoggo","type":"classicdoggo","name":"ClassicDoggo","displayName":"Classic Doggo"},
		"isCollected":true,
		"isComingSoon":false,
		"isNew":false,
		"localeData":[{"title":"Classic Doggo","description":"","languageCode":"en-US"}]
	},
	{
		"kind":"chromewebstore#inAppProduct",
		"sku":"chicken_chicken",
		"item_id":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"type":"inapp",
		"state":"ACTIVE",
		"prices":[{"valueMicros":"1000000","currencyCode":"USD","regionCode":"US"}],
		"petType":{"sku":"chicken_chicken","type":"chicken","name":"Chicken","displayName":"Chicken Birb"},
		"isCollected":true,
		"isComingSoon":false,
		"isNew":false,
		"localeData":[{"title":"Chicken Birb","description":"","languageCode":"en-US"}]
	},
	{
		"kind":"chromewebstore#inAppProduct",
		"sku":"seal_seal",
		"item_id":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
		"type":"inapp",
		"state":"ACTIVE",
		"prices":[{"valueMicros":"1000000","currencyCode":"USD","regionCode":"US"}],
		"petType":{"sku":"seal_seal","type":"seal","name":"Seal","displayName":"Squishy Seal"},
		"isCollected":true,
		"isComingSoon":false,
		"isNew":false,
		"localeData":[{"title":"Squishy Seal","description":"","languageCode":"en-US"}]
	}
]

```
5. 矢印が丸くなった更新マークを押してKey Valueを更新し

![image.png](https://qiita-image-store.s3.amazonaws.com/0/109034/66e65a04-8bcf-ed12-e7fc-75e49387399e.png)

6. ページをリロード！（またはページの左上を見ると"New Pet"と書かれているかもしれませんのでそこを確認）

![jwd.PNG](https://qiita-image-store.s3.amazonaws.com/0/109034/fdcf236a-e777-a64a-565f-f997d3ae4d2e.png)

![image.png](https://qiita-image-store.s3.amazonaws.com/0/109034/f4913293-cfae-9408-96ff-038f2189fe3d.png)

Pet一覧を開いたとき
（動物たちの色は時々変わります）
![image.png](https://qiita-image-store.s3.amazonaws.com/0/109034/c214ecbb-a131-571b-ee62-e41ee52cf00c.png)



参考
▼Git hub
[tabbycatswag.json](https://gist.github.com/oldwestaction/f728bc8e36eba9c27c024b7652c262c0)