Bird babble filter

Complexion

ʇdᴉɹɔsǝɥʇdᴉlɟ
Joined
Jan 1, 2018
Messages
6,346
Reputation
5,419
Daps
27,972
Can you edit the code of this place so it automatically picks up content posted from birdland - twitter, instagram, facebook etc.. - and places a prefix in front of it? Should be as simple as scanning the first post for the URLs and tagging the title automatically.

That way we can support original Coli content as opposed to the low value reposts that proliferate with ease these days, otherwise it gets caught up in the mix.
 

Complexion

ʇdᴉɹɔsǝɥʇdᴉlɟ
Joined
Jan 1, 2018
Messages
6,346
Reputation
5,419
Daps
27,972
Feel free to ignore this thread if you prefer low quality content to proliferate this place.
 

bnew

Veteran
Joined
Nov 1, 2015
Messages
63,087
Reputation
9,641
Daps
172,661
finally got around to making it
change var replacePrefix = false; from false to true to get the specific embed name. If you leave as false it'll show [BIRDLAND]
you can add more embeds mnually if you want just following the format.



Bookmarklet and Userscript Summary
The bookmarklet and userscript are two different tools that accomplish the same goal: to help users identify and categorize online forum threads that contain social media embeds.
What are social media embeds?
Social media embeds are links or snippets of content from social media platforms like Twitter, Instagram, TikTok, and Facebook that are shared within online forums. These embeds can be images, videos, or text posts that are embedded directly into the forum thread.
What does the bookmarklet and userscript do?
When you run the bookmarklet or userscript, it scans the online forum threads on the page and checks for social media embeds. If it finds an embed, it adds a prefix to the thread title to indicate that the thread contains content from that specific social media platform.
How does it work?
Here's a step-by-step explanation:
  1. Identify threads: The bookmarklet or userscript scans the online forum page and identifies individual threads.
  2. Get thread URL: For each thread, it retrieves the URL of the thread.
  3. Fetch thread content: It visits the thread URL and fetches the content of the thread.
  4. Parse content: It parses the content to identify social media embeds.
  5. Check for embeds: If it finds an embed, it checks which social media platform the embed is from (e.g., Twitter, Instagram, etc.).
  6. Add prefix: If the embed is from a platform that you've configured the bookmarklet or userscript to check for (e.g., Twitter, Instagram, etc.), it adds a prefix to the thread title to indicate that the thread contains content from that platform.
Example
Let's say you're browsing a forum thread titled "Sports News". When you run the bookmarklet or userscript, it fetches the content of the thread and finds a Twitter embed. Since you've configured the bookmarklet or userscript to check for Twitter embeds, it adds a prefix to the thread title, changing it to "[Twitter] Sports News".
Benefits
The bookmarklet and userscript provide several benefits:
  • Easy identification: It helps you quickly identify threads that contain social media embeds, making it easier to navigate the forum.
  • Categorization: It categorizes threads based on the type of social media embed they contain, making it easier to find threads related to specific platforms.
  • Customization: You can configure the bookmarklet or userscript to check for specific social media platforms, allowing you to customize the experience to your preferences.
Configuration options
The bookmarklet and userscript have several configuration options that allow you to customize the experience:
  • Check for Twitter: You can choose whether to check for Twitter embeds.
  • Check for Instagram: You can choose whether to check for Instagram embeds.
  • Check for TikTok: You can choose whether to check for TikTok embeds.
  • Check for Facebook: You can choose whether to check for Facebook embeds.
  • Replace prefix: You can choose whether to replace the default prefix with a custom prefix based on the social media platform.
Overall, the bookmarklet and userscript provide a convenient way to identify and categorize online forum threads that contain social media embeds, making it easier to navigate and find relevant content.


bookmarklet:




userscript:



var replacePrefix = true;
RZCIaL7.png


var replacePrefix = false;
CLRsQfD.png
 
Top