Created
April 10, 2018 09:40
-
-
Save maicong/cd221443d83c82ace23ca7222a648baa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
javascript:(() => { | |
const $ = ele => document.querySelector(ele) || null; | |
const $author = $('input[name="author"]'); | |
const $mail = $('input[name="mail"]') || $('input[name="email"]'); | |
const $url = $('input[name="url"]'); | |
const $comment = $('textarea[name="w"]') || $('textarea[name="text"]') || $('textarea[name="comment"]'); | |
const randomValue = [ | |
'写的不错,很有深度,令人信服。', | |
'又在折腾了啊,我都没了折腾的精力。', | |
'感同身受。', | |
'👍 6的一批,支持一个~', | |
'好久不见,还在创作啊。', | |
'悄悄留个足迹,表示我来过~', | |
'我倒,你也在网上冲浪啊', | |
'你是 GG 还是 MM 啊', | |
'来跑堂了,假装路过~' | |
]; | |
$author.value = '你的昵称'; | |
$mail.value = '你的邮箱'; | |
$url.value = '你的网站'; | |
$comment.value = randomValue[ | |
Math.ceil(Math.random() * randomValue.length - 1) | |
]; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
压缩版,添加到书签