This file contains 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 discuit-comment-permalink | |
// @namespace discuit-aw-userscripts | |
// @version 2024-04-11 | |
// @description Provide a permalink for comments on post pages | |
// @author AuralWanderer | |
// @match https://discuit.net/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=discuit.net | |
// @grant none | |
// ==/UserScript== |
This file contains 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 discuit-hide-downvotes | |
// @namespace discuit-aw-userscripts | |
// @version 2024-04-11 | |
// @description Hide downvotes on Discuit | |
// @author AuralWanderer | |
// @match https://discuit.net/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=discuit.net | |
// @grant none | |
// ==/UserScript== |
This file contains 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
# disc domination | |
import pandas | |
fullDF = pandas.read_csv("d:/docs/download/discuitdump/concat.csv") | |
fullDF = fullDF.query("deleted != True")[["disc", "user"]] | |
discUser = (fullDF | |
.groupby(["disc", "user"], as_index = False) | |
.size() | |
.rename(columns = {"size": "userItems"})) | |
disc = (discUser[["disc", "userItems"]] |
This file contains 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
import pandas | |
fullDF = pandas.read_csv("c:/users/bobloblaw/downloads/datadump.csv") | |
fullDF["date"] = fullDF["createdAt"].str.slice(0, 10).str.replace("-", "") | |
# for completeness, want to ensure every date is represented, | |
# but this should be true as there was daily activity | |
# DateRange = pandas.date_range(start = "20230616", end = "20240229") | |
# DateRange = pandas.DataFrame(index = DateRange) |
This file contains 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 discuit-expand-subscriptions | |
// @namespace discuit-aw-userscripts | |
// @version 2024-02-10 | |
// @description Autoexpand discuit.net sidebar subscription menu. | |
// @author AuralWanderer | |
// @match https://discuit.net/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=discuit.net | |
// @grant none | |
// ==/UserScript== |
This file contains 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 discuit-report-notification | |
// @namespace discuit-aw-userscripts | |
// @version 2024-02-13 | |
// @description Moderator notification for disc reports. | |
// @author AuralWanderer | |
// @match https://discuit.net/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=discuit.net | |
// @grant none | |
// ==/UserScript== |
This file contains 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
# to do: error checking/resumption code (can use pagination cursor of post to determine when script paused?) | |
# clean up repetition | |
# timing issue: if fetching by latest, someone can make a comment | |
# that puts a post out of the date limits before the looping | |
# has a chance to fetch the post | |
# do a second sweep after hitting the date limit? | |
# would have to store the script's start time and figure out | |
# when it halts due to hitting the lower date limit and | |
# reprocess comments according to that... |