您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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