您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
为自己的评论添加举报按钮
// ==UserScript== // @name 自己举报自己 // @namespace https://greasyfork.org/zh-CN/users/822325-mininb666 // @version 0.1 // @description 为自己的评论添加举报按钮 // @author mininb666 // @match *://*.greasyfork.org/* // @icon https://greasyfork.org/packs/media/images/blacklogo96-b2384000fca45aa17e45eb417cbcbb59.png // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; document.querySelectorAll(".comment").forEach(e=>{ if (e.innerHTML.indexOf("举报评论") == -1) { var el = document.createElement("div"); el.innerHTML = '<a href="https://greasyfork.org/zh-CN/reports/new?item_class=comment&item_id=' + (e.id.substring(e.id.indexOf("-") + 1)) + '">举报评论</a>'; el.className = "comment-meta-item"; e.querySelector(".comment-meta").appendChild(el) } } ) })();