入力欄に文字を入れてボタンを押すと一定時間で消える投稿をしてくれます。
- // ==UserScript==
- // @name 消える投稿(Feederチャット)
- // @author 初投稿マン
- // @version 2.0
- // @description 入力欄に文字を入れてボタンを押すと一定時間で消える投稿をしてくれます。
- // @match *.x-feeder.info/*/
- // @exclude *.x-feeder.info/*/*/*
- // @namespace https://greasyfork.org/users/297030
- // @grant none
- // ==/UserScript==
- (() => {
- 'use strict'
- const func = () => {
- $("#post_form_single").val(hoge);
- $("#post_btn").click();
- setTimeout(() => {
- $(".remove_icon").first().click();
- window.confirm = () => {
- return true;
- };
- }, 500);
- };
- let hoge;
- $("<button>").text("消える投稿").prependTo($("#post_btn").parent()).click(func);
- $("<input>").attr('placeholder', '投稿したい内容').prependTo($("#post_btn").parent()).change(function () {
- hoge = $(this).val();
- });
- })();