Last active
April 16, 2026 11:10
-
-
Save TypeA2/b0fe3785a0945fd9d14713f8b0d3f8ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Direct feedback links | |
| // @namespace https://gist.github.com/TypeA2/ | |
| // @version 1.1 | |
| // @description Direct feedback links | |
| // @author TypeA2 | |
| // @match https://*.donmai.us/user_feedbacks* | |
| // @grant none | |
| // @downloadURL https://gist.github.com/TypeA2/b0fe3785a0945fd9d14713f8b0d3f8ac/raw/feedback-direct-link.user.js | |
| // @updateURL https://gist.github.com/TypeA2/b0fe3785a0945fd9d14713f8b0d3f8ac/raw/feedback-direct-link.user.js | |
| // @noframes | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| const table = $("#user-feedbacks-table"); | |
| table.find("th.control-column").text("Control"); | |
| table.find("tbody > tr").each((_, el) => { | |
| const tr = $(el); | |
| if (tr.data("creator-id") === Danbooru.CurrentUser.data("id")) { | |
| tr.find(".control-column").append(" | "); | |
| } | |
| tr.find(".control-column").append($("<a>", { href: `/user_feedbacks/${tr.data("id")}`, text: "View" })); | |
| }) | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment