Greasy Fork

来自缓存

Greasy Fork is available in English.

typecho评论自动填入

各类typecho自动填入名称

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         typecho评论自动填入
// @namespace    https://wumingboke.xyz
// @version      0.1
// @description  各类typecho自动填入名称
// @author       无名博客
// @match        *://*/*
// @icon         https://b12757766.beeoffer.cn/files/img/IMG_20220926_195041_034.jpg
// @grant        none
// ==/UserScript==

(function() {
    var ty_nick = "123" // 学生学号(请在单引号内填写)
    var ty_mail = "your mail" // 学生密码(请在单引号内填写)
    var ty_link = "your blog url"
    //各种主题自动填入

    //正常主题
    if(document.querySelector("#author") !== null)
 {
    document.querySelector('#author').value = ty_nick
    document.querySelector('#mail').value = ty_mail
    document.querySelector('#url').value = ty_link
 }
    if(document.querySelector("#wl-nick") !== null)
    {
    //傻逼主题
    document.querySelector('#wl-nick').value = ty_nick
    document.querySelector('#wl-mail').value = ty_mail
    document.querySelector('#wl-link').value = ty_link
    }
        if(document.querySelector("#comment-name") !== null)
    {
    //傻逼主题
    document.querySelector('#comment-name').value = ty_nick
    document.querySelector('#comment-mail').value = ty_mail
    document.querySelector('#comment-url').value = ty_link
    }
})();