Skip to content

Commit

Permalink
Fix duplicate options and request support for site menu items for use…
Browse files Browse the repository at this point in the history
…rscript
  • Loading branch information
qsniyg committed Jan 3, 2024
1 parent fdb33cb commit 4815196
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ Improvements:
Bugfixes:

* Fix remote messages failing under Firefox (thanks to Tulsow for reporting)
* Fix duplicate "Options" and "Request support for site" menu items for userscript (thanks to fireattack for reporting)

Special madman06, nimbuz, Broly, Tulsow, jonestly for their contributions and reports for this release
Special madman06, nimbuz, Broly, Tulsow, jonestly, fireattack for their contributions and reports for this release

---

Expand Down
2 changes: 1 addition & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2065,7 +2065,7 @@ var $$IMU_EXPORT$$;
open_in_tab = GM.openInTab;
}

if (open_in_tab !== common_functions["nullfunc"]) {
if (false && open_in_tab !== common_functions["nullfunc"]) {
register_menucommand("Options", get_options_page());
register_menucommand("Request support for this page", function() {
if (is_in_iframe)
Expand Down
2 changes: 1 addition & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1717,7 +1717,7 @@ var $$IMU_EXPORT$$;
} else if (typeof (GM) !== "undefined" && typeof (GM.openInTab) !== "undefined") {
open_in_tab = GM.openInTab;
}
if (open_in_tab !== common_functions["nullfunc"]) {
if (false && open_in_tab !== common_functions["nullfunc"]) {
register_menucommand("Options", get_options_page());
register_menucommand("Request support for this page", function() {
if (is_in_iframe)
Expand Down

0 comments on commit 4815196

Please sign in to comment.