I’m trying to figure out how to create a new script and for just a trivial test script, ViolentMonkey show it as matching via the badge, but it doesn’t appear in the dropdown list of scripts that matched.
Note the badge says 10, but the “Matched scripts” says 8. Note that I two new scripts that should both match the reviews page. When the first one didn’t appear to be executing my javascript code, I created this trivial test one.
Both scripts appear on the ViolentMonkey Dashboard.
The sum total of the script is
// ==UserScript==
// @name WaniKani Violent Monkey Test
// @namespace ViolentmonkeyScripts
// @match https://www.wanikani.com/review/session
// @grant none
// @version 1.0
// @author Frustrated Monkey
// @description Trivial test script
// ==/UserScript==
console.log("Hello WaniKani")
Anybody with any script experience know why this might be happening?
I should be doing reviews, but instead I get obsessed with figuring out why stuff is broken…
For completeness filed a bug here.
Badge count does match matched count. · Issue #1186 · violentmonkey/violentmonkey · GitHub
Upgrading off of latest stable to their latest beta fixed the problem. No idea whether or not that was just coincidence or they actually broke and fixed something.
Did you try restarting the browser?
1 Like
lol. No. Why would I do that?
You’re right, restarting things never helped anyone
2 Likes
Installing the bleeding edge beta of ViolentMonkey seemed to fix the problem. I don’t know if it was in the browser or in ViolentMonkey.
opened 01:07AM - 07 Feb 21 UTC
closed 06:16AM - 07 Feb 21 UTC
### What is the problem?
I have a trivial script that I'm using to figure out… how to get the scripts to execute properly.
Here is the entirety of my script
```
// ==UserScript==
// @name WaniKani ViolentMonkey Unit Test
// @namespace WaniKaniScripts
// @match https://www.wanikani.com/review/session
// @grant none
// @version 1.0
// @author Craig MacFarlane
// @description Violent Monkey Test
// @run-at document-end
// ==/UserScript==
console.log("Hello ViolentMonkey Unit Test")
```
When I navigate to the matching url, The badge will indicate that there's a match, but on the dropdown list, the new Unit Test script is not listed, and I can find no evidence in the console that it ever executed.

The badge count say 9, but there are only 8 active userscripts listed and my new script is not among the active or inactive scripts in the dropdown.
One presumes that the 9th script being recognized on the badge is this unit test, but why is it not in the list, and why is it not getting executed?
Note that the Unit Test script does appear at the bottom of the ViolentMonkey dashboard. Where I can select the edit icon and modify it. And I've confirmed that it is not disabled.
### How to reproduce it?
1. Install the script above.
2. Navigate to https://www.wanikani.com/review/session
### What is the expected result?
Expect to see the script matched, in the dropdown list as enabled. And expect to see the console message in the console.
### What is the actual result?
None of the above.
### What is the result in the [upcoming release](https://github.com/violentmonkey/violentmonkey/releases)?
<!--
If this is a bug report, please also provide logs in the console.
-->

### Environment
- Browser: Firefox
- Browser version: 84.0.2
- Violentmonkey version: 2.12.8
- OS: Windows 10