Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Mx bookmarklet #42

Open
ryancdotorg opened this issue May 30, 2022 · 0 comments
Open

Add Mx bookmarklet #42

ryancdotorg opened this issue May 30, 2022 · 0 comments

Comments

@ryancdotorg
Copy link

If one creates a bookmark to the following address

javascript:(D=>{D.querySelectorAll("option[value^=mrs i]").forEach(N=>{for(var r=D.createElement("option"),p=N.parentNode,o=p.children,t=0;t<o.length;++t)if(/^mx/i.test(o[t].value))return o[t].selected=!0;r.value=r.innerText=N.value.replace(/rs/i,s=>"R"==s[0]?"X":"x"),p.appendChild(r),r.selected=!0})})(document)

for many forms, an Mx option can be added simply by clicking on the bookmark while the form is open. This is known as a "bookmarklet".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant