Move to trash

Move thread to trash

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Move to trash
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Move thread to trash
// @author       Marentdev
// @match        https://realitygaming.fr/threads/*
// @grant        none
// ==/UserScript==

    $('head').append('<script>function chrislenoob() {   var id = document.URL.toString().split("/")[4];         var title = document.getElementsByClassName("p-title-value")[0].textContent;var xftoken = document.getElementsByName("_xfToken")[0].value;   $.post( "https://realitygaming.fr/threads/" + id + "/move", { prefix_id: "0", title: title, target_node_id: 281, redirect_type: "none", notify_watchers: 1, starter_alert: 1, _xfToken: xftoken, _xfResponseType: "json" }, function( data ) {               console.log(data);});}</script>');
    $('div.buttonGroup-buttonWrapper').after('<a class="button--link button" data-xf-click="scroll-to" data-silent="true"><span onclick="chrislenoob();"class="button-text">Move to trash</span></a>');