-
-
Save bestpika/d16f0c2b49b2156273cb9f9fe4cdbca9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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