From f6964ca7c006bee891581ea3205a2b93042384cb Mon Sep 17 00:00:00 2001 From: a1mer Date: Tue, 6 Feb 2024 15:58:36 +0800 Subject: [PATCH] bump 0.8.1 --- dist/aliyundrive-rename.user.js | 7 +++++-- package.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dist/aliyundrive-rename.user.js b/dist/aliyundrive-rename.user.js index 7befa4f..69674ca 100644 --- a/dist/aliyundrive-rename.user.js +++ b/dist/aliyundrive-rename.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name 云盘批量重命名 // @namespace vite-plugin-monkey -// @version 0.8.0 +// @version 0.8.1 // @author a1mersnow // @description 批量重命名云盘里的文件,支持阿里云盘、夸克云盘 // @license GPL @@ -1378,7 +1378,7 @@ } const name = "aliyundrive-rename"; const type = "module"; - const version = "0.8.0"; + const version = "0.8.1"; const packageManager = "pnpm@8.15.0"; const description = "Batch rename files of aliyundrive."; const author = "a1mersnow"; @@ -1688,6 +1688,9 @@ } }); const ENTRY_ID = "a1mersnow_webdrive_rename"; + if (window[ENTRY_ID]) + throw new Error("This error is expected! It means you have installed two copy of this script. Please remove one."); + window[ENTRY_ID] = true; const oldSetHeader = XMLHttpRequest.prototype.setRequestHeader; XMLHttpRequest.prototype.setRequestHeader = function(key, value) { setRequestHeader(key, value); diff --git a/package.json b/package.json index baf25f7..56c14d6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "aliyundrive-rename", "type": "module", - "version": "0.8.0", + "version": "0.8.1", "private": true, "packageManager": "pnpm@8.15.0", "description": "Batch rename files of aliyundrive.",