您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Move thread to trash
// ==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>');