Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bestpika
Last active July 9, 2018 01:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bestpika/d16f0c2b49b2156273cb9f9fe4cdbca9 to your computer and use it in GitHub Desktop.
Save bestpika/d16f0c2b49b2156273cb9f9fe4cdbca9 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name 二次元画像詳細検索
// @description 二次元画像詳細検索
// @author Yui Mitsuki <bestpika@gmail.com>
// @icon https://ascii2d.net/assets/favicon-461e7af86f6c1a73f716cf8c729e65d6164851b66470932d01ef928ebbaed6ba.ico
// @downloadURL https://gist.github.com/bestpika/d16f0c2b49b2156273cb9f9fe4cdbca9/raw/ascii2d.user.js
// @updateURL https://gist.github.com/bestpika/d16f0c2b49b2156273cb9f9fe4cdbca9/raw/ascii2d.user.js
// @version 2017.1218.1
// @license MIT
//
// @namespace http://trumpery.net/
// @match *://*.ascii2d.net/search/uri?uri=*
// ==/UserScript==
(function () {
let ascii2d = 'https://ascii2d.net/search/uri'
let method = 'POST'
let uri = decodeURIComponent(window.location.search.match(/\?uri=(.*)/)[1])
// form
let form = document.createElement('form')
form.method = method
form.action = ascii2d
// input
let input = document.createElement('input')
input.type = 'hidden'
input.name = 'uri'
input.value = uri
// append
form.appendChild(input)
document.body.appendChild(form)
form.submit()
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment