Skip to content

Instantly share code, notes, and snippets.

@arantius
Created November 5, 2023 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arantius/933b3921877c3ac4316f38dbc956784d to your computer and use it in GitHub Desktop.
Save arantius/933b3921877c3ac4316f38dbc956784d to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name URLSearchParams test
// @version 1
// @grant none
// ==/UserScript==
// Test for https://github.com/greasemonkey/greasemonkey/issues/3136
const searchParams = new URLSearchParams("key1=value1&key2=value2");
for (const key of searchParams.keys()) {
console.log(key);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment