Skip to content

Instantly share code, notes, and snippets.

@Alistair1231
Last active October 15, 2021 15:50
Show Gist options
  • Save Alistair1231/1288bf3f391f15b82b32fefe35f54300 to your computer and use it in GitHub Desktop.
Save Alistair1231/1288bf3f391f15b82b32fefe35f54300 to your computer and use it in GitHub Desktop.
mangaupdates.com search shortcut firefox

Make MangaUpdates searches via your address bar

  • Save this as bookmark
  • picture 1
  • use like this
  • picture 2
  • enjoy!
  • picture 3
javascript:(function (text, url='https://www.mangaupdates.com/search.html', formData={ search: 'null' }) {
    formData.search=text;
    const h = (tag, props) => Object.assign(document.createElement(tag), props);
    const form = h('form', { action: url, method: 'post', hidden: true });
    for (const [name, value] of Object.entries(formData)) {
        form.appendChild(h('input', { name, value }));
    }
    document.body.appendChild(form);
    form.submit();
})(`%s`)

credits for post code and credits for bookmark idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment