iqdb.org移动版

make iqdb.org uses more easier on your phones

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         iqdb.org移动版
// @name:en      iqdb.org for mobile
// @namespace    pikashi
// @version      0.10
// @description  make iqdb.org uses more easier on your phones
// @description:en make iqdb.org uses more easier on your phones
// @author       pks
// @match        http://iqdb.org/*
// @match        https://iqdb.org/*
// @match        http://*.iqdb.org/*
// @match        https://*.iqdb.org/*
// @grant        none
// ==/UserScript==

(function() {
    var meta = document.createElement('meta');
    meta.name = 'viewport';
    meta.content = 'width=device-width, initial-scale=1.0';
    document.head.appendChild(meta);

    var css = document.createElement('style');
    css.textContent = `
@media screen and (max-width: 768px) {
body {
font-size: 16px;
}

h1 {
font-size: 1.75rem;
}

p {
font-size: 0.8rem;
}

table {
font-size: 0.75rem !important;
}

#url {
min-width: 55vw;
max-width: 60vw;
}

#file {
max-width: 55vw;
}

form table:last-of-type,form table:last-of-type input {
font-size: 1.25rem !important;
}

form table:first-of-type {
max-height: 38vh;
overflow-y: auto;
display: block;
width: 90vw;
}

form table:first-of-type th {
white-space: normal;
width: 61vw;
}

input[type="submit"] {
width: 27vw;
}

input[type="submit"], input[type="file"], input[type="text"] {
height: 35px;
}

#pages a {
font-size: 1.3rem;
}
}
`;
    document.head.appendChild(css);
})();