Skip to content

Instantly share code, notes, and snippets.

@ikr7 ikr7/index.html
Created Jan 8, 2019

Embed
What would you like to do?
vtwi
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>vtwi</title>
<style>
label {
display: block;
}
</style>
</head>
<body>
<h1>vtwi</h1>
<a href="" target="_brank">Go</a>
<label><input type="checkbox" name="ShizuRin23">静凛</label>
<label><input type="checkbox" name="Moiramoimoimoi">モイラ</label>
<label><input type="checkbox" name="HiguchiKaede">樋口楓</label>
<label><input type="checkbox" name="aki_suzuya">鈴谷アキ</label>
<label><input type="checkbox" name="sibuya_hajime">渋谷ハジメ</label>
<label><input type="checkbox" name="Elu_World">える</label>
<label><input type="checkbox" name="MitoTsukino">月ノ美兎]</label>
<label><input type="checkbox" name="Chihiro_yuki23">勇気 ちひろ]</label>
<label><input type="checkbox" name="SAKURA_RITSUKI">桜凛月</label>
<label><input type="checkbox" name="Vamp_Kuzu">葛葉</label>
<label><input type="checkbox" name="ienaga_mugi23">家長むぎ</label>
<label><input type="checkbox" name="gaku_fushimi">伏見ガク</label>
<label><input type="checkbox" name="Yuuhi_Riri">夕陽リリ</label>
<label><input type="checkbox" name="AliceMononobe">物述有栖</label>
<label><input type="checkbox" name="rei_Toya_rei">剣持刀也</label>
<label><input type="checkbox" name="suzukautako">鈴鹿詩子</label>
<label><input type="checkbox" name="Gilzaren_III">ギルザレンⅢ世</label>
<label><input type="checkbox" name="ushimi_ichigo">宇志海いちご</label>
<label><input type="checkbox" name="nekokan_chu">文野環</label>
<label><input type="checkbox" name="KazakiMorinaka">森中花咲</label>
<label><input type="checkbox" name="Kanae_2434">叶</label>
<label><input type="checkbox" name="Youko_Akabane">赤羽葉子</label>
<label><input type="checkbox" name="Darkness_Eater">鈴木勝</label>
<label><input type="checkbox" name="ZulmIhP1nlMOT5y">花畑チャイカ</label>
<label><input type="checkbox" name="god_yaksa23">海夜叉神</label>
<label><input type="checkbox" name="SisterCleaire">シスター・クレア</label>
<label><input type="checkbox" name="_rnrrdark">闇夜乃モルル</label>
<label><input type="checkbox" name="midori_2434">緑仙</label>
<label><input type="checkbox" name="KT_seeds">轟京子</label>
<label><input type="checkbox" name="839yuzu">八朔ゆず</label>
<label><input type="checkbox" name="ikasumi_zzz">出雲霞</label>
<label><input type="checkbox" name="azuma_dazo">名伽尾アズマ</label>
<label><input type="checkbox" name="___Dola">ドーラ</label>
<label><input type="checkbox" name="momo_aduchi">安土桃</label>
<label><input type="checkbox" name="udukikohh">卯月コウ</label>
<label><input type="checkbox" name="846kizuQ">社築</label>
<label><input type="checkbox" name="narusenaru_2434">成瀬鳴</label>
<label><input type="checkbox" name="harusakiair2434">春崎 エアル</label>
<label><input type="checkbox" name="belmond_b_2434">ベルモンド・バンデラス</label>
<label><input type="checkbox" name="TakamiyaRion">鷹宮リオン</label>
<label><input type="checkbox" name="RindouMikoto">竜胆尊</label>
<label><input type="checkbox" name="honmahimawari">本間ひまわり</label>
<label><input type="checkbox" name="hina__asuka">飛鳥ひな</label>
<label><input type="checkbox" name="Kanda_Shoichi">神田笑一</label>
<label><input type="checkbox" name="kakeru_yumeoi">夢追翔</label>
<label><input type="checkbox" name="ac1kt">遠北千南</label>
<label><input type="checkbox" name="Sayo_Amemori">雨森小夜</label>
<label><input type="checkbox" name="makaino_ririmu">魔界ノりりむ</label>
<label><input type="checkbox" name="yuika_siina">椎名唯華</label>
<label><input type="checkbox" name="setsuna2434">雪汝</label>
<label><input type="checkbox" name="tukimi_sizuku">月見しずく</label>
<label><input type="checkbox" name="maimoto_k">舞元啓介</label>
<label><input type="checkbox" name="chima_machita23">町田ちま</label>
<label><input type="checkbox" name="debidebiru_sama">でびでび・でびる</label>
<label><input type="checkbox" name="JoeRikiichi">ジョー・力一</label>
<label><input type="checkbox" name="BlackShiba_chan">黒井しば</label>
<label><input type="checkbox" name="Rine_Yaguruma">矢車りね</label>
<script>
function updateQuery () {
const checked = [];
document.querySelectorAll('input').forEach((e) => {
if (e.checked) {
checked.push(e.name);
}
});
const query = checked.map((f) => {
let to = checked.filter((t) => {
return f !== t
}).map((t) => {
return `to:${t}`;
}).join(' OR ');
return `(from:${f} (${to}))`;
}).join(' OR ');
const href = `https://twitter.com/search?f=tweets&q=${encodeURIComponent(query)}&src=typd`;
document.querySelector('a').href = href;
}
document.querySelectorAll('input').forEach((e) => {
e.addEventListener('change', updateQuery);
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.