We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a0b64e commit 9520162Copy full SHA for 9520162
background_scripts/all_commands.js
@@ -132,6 +132,7 @@ const allCommands = [
132
advanced: true,
133
options: {
134
popAnchor: "Remove the anchor/fragment/hash from the URL, if present.",
135
+ popQuery: "Remove query parameters from the URL, if present.",
136
},
137
138
content_scripts/mode_normal.js
@@ -144,6 +144,13 @@ const NormalModeCommands = {
144
--c;
145
}
146
147
+ // Pop query params.
148
+ if (c > 0 && registryEntry.options.popQuery && url.search !== "") {
149
+ url.search = "";
150
+ url.hash = "";
151
+ --c;
152
+ }
153
+
154
// Pop path segments.
155
if (c > 0 && url.pathname != "/") {
156
url.pathname = url.pathname.split("/").slice(0, -c).join("/");
0 commit comments