Go Back   Freethought Forum > Public Works > Forum Administration

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-07-2023, 02:39 AM
michio michio is offline
Member
 
Join Date: May 2009
Posts: CXXII
Default Script for replacing a specific user's comment with a motivational quote

See the post after this for instructions on installing and using.

-----

I'm writing a script that you can use with the Tampermonkey extension to hide a user's quoted messages with a motivational quote.

Motivation & use case: If a user is bothering you, you can add them to your ignore list, but there's a problem. Other users can quote their messages, and you can still see that, which defeats the purpose of the ignore feature. So I set out to do something about that.

How it works: Install the Tampermonkey browser extension, I give you the javascript, you provide the script usernames, and it will replace those usernames' posts with a motivational quote. Click on the quote to receive a new quote.

Here's a video demo of what I have so far:
https://p192.p3.n0.cdn.getcloudapp.c...56e4e01f4675cb

TODO:
  • [ ]Support more than one username
  • [DONE]Instead of just replacing quoted posts, also replace the original post with a quote
  • [DONE]Make a version of the script that will just hide the message with "Hidden" or something instead of using the quote API
  • [ ]Make sure I'm not accidentally targeting unintended elements in the page
  • [DONE]Make more user friendly and easy to setup?
  • [ ]Ability to customize styling so you can have your own font, font size, and colors?
  • [ ]Refactor/cleanup

Unfortunately this is right now extremely not user-friendly. I'm using rapidapi.com. If I provided the script, I'm not going to share my API key. So you would have to sign up at rapidapi.com, and navigate to this page: Quotel - Quotes API Documentation (skjaldbaka17) | RapidAPI and subscribe to the API, then you have to modify the script (it's easy and I can provide a screenshot) to provide your personal API key. All of that is way too much of a pain in the ass.

The only way to make this really user-friendly is to create a Chrome extension, which instead of calling rapidapi.com directly, the request is routed to a proxy server I would have to setup, which then routes the request to rapidapi.com. That way, only the proxy server needs the API key, and nobody has to do anything except install the browser extension.

I might actually do all of this because I'm in the market for a new job, and I think it would be really funny if I was showing off my projects in an interview and I pulled up freethought-forum.com for a demonstration of my tool.

Last edited by michio; 10-08-2023 at 02:20 AM.
Reply With Quote
Thanks, from:
Ensign Steve (10-08-2023), fragment (10-07-2023), JoeP (10-07-2023), mickthinks (10-07-2023), slimshady2357 (10-07-2023)
 

  Freethought Forum > Public Works > Forum Administration


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

 

All times are GMT +1. The time now is 03:25 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Page generated in 0.33856 seconds with 14 queries