Skip to content

Commit

Permalink
Add script migration notice
Browse files Browse the repository at this point in the history
  • Loading branch information
bradp committed Jan 18, 2024
1 parent 7817f82 commit 88fd376
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
21 changes: 20 additions & 1 deletion mh-shields.user.js
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 () {
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -137,6 +139,7 @@
'fabled',
'capt-america',
'hylian',
'eggs',
];

onPageChange({ change: changeShield });
Expand Down Expand Up @@ -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');
})());
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mh-shields",
"version": "1.6.6",
"version": "1.7.0",
"description": "",
"main": "mh-shields.user.js",
"scripts": {
Expand Down

0 comments on commit 88fd376

Please sign in to comment.