Shopify - Always log-in from Partner Dashboard

If your Shopify store session expires, this will redirect you

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name Shopify - Always log-in from Partner Dashboard
// @description If your Shopify store session expires, this will redirect you
// from regular user login page, to specified partner dashboard.
// Please make sure to change PARTNER_ID (you can find it by going to partner
// dashboard and taking it from the URL)
// @version 0.1
// @author Patryk Jakubik
// @namespace Violentmonkey Scripts
// @match https://*.myshopify.com/admin/auth/login
// @grant none
// @esversion: 6
// ==/UserScript==
/*jshint esversion: 6 */

const PARTNER_ID = CHANGE_ME

const url_string = window.location.href
const shop = url_string.replace("https://", "").replace("/admin/auth/login", "")
const redirect = `https://partners.shopify.com/${PARTNER_ID}/stores?search_value=${shop}`

window.location.href = redirect