From 88fd376416344effbc25ab90c7504f6adfd3de47 Mon Sep 17 00:00:00 2001 From: Brad Parbs Date: Wed, 17 Jan 2024 23:18:23 -0600 Subject: [PATCH] Add script migration notice --- LICENSE.md | 2 +- README.md | 4 ++++ mh-shields.user.js | 21 ++++++++++++++++++++- package-lock.json | 4 ++-- package.json | 2 +- 5 files changed, 28 insertions(+), 5 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 744b908..221015e 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ # MIT License -Copyright (c) 2022 Brad Parbs +Copyright (c) 2023 Brad Parbs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c9fa128..f1460ed 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ A Userscript for [MouseHunt](https://mousehuntgame.com) to change your shield! +> [!TIP] +> You should install [MouseHunt Improved](https://github.com/MHCommunity/mousehunt-improved) instead of this script, as it includes this functionality and tons more! + + ## Installation Install via [GreasyFork](https://greasyfork.org/en/scripts/454147-mousehunt-shields). diff --git a/mh-shields.user.js b/mh-shields.user.js index d6b1761..00bf15f 100644 --- a/mh-shields.user.js +++ b/mh-shields.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 🐭️ Mousehunt - Shields -// @version 1.6.6 +// @version 1.7.0 // @description Change your MouseHunt shield to an event shield, like the Halloween shield. // @license MIT // @author bradp @@ -10,6 +10,7 @@ // @grant none // @run-at document-end // @require https://cdn.jsdelivr.net/npm/mousehunt-utils@1.5.3/mousehunt-utils.js +// @require https://cdn.jsdelivr.net/npm/script-migration@1.1.1 // ==/UserScript== ((function () { @@ -108,6 +109,7 @@ addSetting('Valentine\'s', 'valentines-shield', false, '', settingSection, tab); addSetting('Great Winter Hunter', 'winter_hunt-shield', false, '', settingSection, tab); addSetting('Larry\'s Football Challenge', 'larrys_football_challenge-shield', false, '', settingSection, tab); + addSetting('Spring Egg Hunt', 'eggs-shield', false, '', settingSection, tab); addSetting('Title ', 'title-shield', false, 'Hunter Title badge', settingSection, tab); addSetting('Fabled ', 'fabled-shield', false, 'Custom shield with Fabled Badge', settingSection, tab); addSetting('Scrambles ', 'scrambles-shield', false, 'Bawk!', settingSection, tab); @@ -137,6 +139,7 @@ 'fabled', 'capt-america', 'hylian', + 'eggs', ]; onPageChange({ change: changeShield }); @@ -243,5 +246,21 @@ background-repeat: no-repeat; background-size: contain; } + + .mousehuntHud-shield.eggs::after { + position: absolute; + position: absolute; + top: 2px; + left: 0px; + width: 137px; + height: 137px; + content: ""; + // background-image: url(https://i.mouse.rip/eggs-shield.png); + background-image: url(https://i.mouse.rip/shield-eggs-alt.png); + background-repeat: no-repeat; + background-size: contain + } `); + + migrateUserscript('🐭️ MouseHunt - Shields', 'https://greasyfork.org/en/scripts/454147-mousehunt-shields'); })()); diff --git a/package-lock.json b/package-lock.json index 1215bf7..81cbed8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mh-shields", - "version": "1.6.6", + "version": "1.7.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mh-shields", - "version": "1.6.6", + "version": "1.7.0", "license": "MIT", "devDependencies": { "@wordpress/eslint-plugin": "^12.9.0", diff --git a/package.json b/package.json index 0c35ef9..0935306 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mh-shields", - "version": "1.6.6", + "version": "1.7.0", "description": "", "main": "mh-shields.user.js", "scripts": {