- Chrome: Version 87.0.4280.67
- Tampermonkey: v4.11
I'm trying to add a button to https://academic.microsoft.com/paper/*
. But when I search on https://academic.microsoft.com/home and select any result to redirect to https://academic.microsoft.com/paper/*
, the script won't run as expected. To trigger the user script, I need to refresh the website.
For example:
- Add a test user script
// ==UserScript==
// @name Test Userscript
// @match https://academic.microsoft.com/paper/*
// ==/UserScript==
(function() {
'use strict';
alert("Matched");
})();
- Search anything on https://academic.microsoft.com/home
- Press any result title to go to the detail page
https://academic.microsoft.com/paper/*
- The user script won't run
- Refresh the website, the script runs