SL968
Oct 1st, 2024
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. To customize your Mastodon experience by hiding or displaying hashtags and enhancing link appearances, follow these steps to install and configure the userscript:
  2.  
  3. Step 1: Install a Userscript Manager
  4.  
  5. A userscript manager is required to run custom scripts in your browser. Popular options include:
  6.  
  7. Tampermonkey: Compatible with Chrome, Firefox, Edge, Safari, and more.
  8. Installation link: https://www.tampermonkey.net/
  9. Greasemonkey: Primarily for Firefox users.
  10. Installation link: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
  11.  
  12. Choose the one that aligns with your browser and install it.
  13.  
  14. Step 2: Add the Userscript
  15.  
  16. Access the Userscript Manager:
  17. Click on the Tampermonkey or Greasemonkey icon in your browser's toolbar.
  18. Create a New Script:
  19. Select the option to create or add a new script.
  20. Retrieve the Script Code:
  21. Navigate to the Pastebin link provided above.
  22. Copy the entire script code from the Pastebin page.
  23. Paste the Script:
  24. In the userscript editor, paste the copied script code.
  25.  
  26. Step 3: Configure the Script
  27.  
  28. The script offers customization options:
  29.  
  30. Link Color:
  31. Find the line const linkColor = '#00A0E9';
  32. Replace '#00A0E9' with your preferred color code (e.g., '#FF5733' for a reddish hue).
  33. Bold Links:
  34. Locate const makeLinksBold = true;
  35. Set it to true to make links bold or false to keep them normal.
  36. Hide Hashtags:
  37. Identify const hideHashtags = true;
  38. Set it to true to hide hashtags or false to display them.
  39.  
  40. Note: If you're using a Mastodon instance other than mastodon.online or mastodon.social, add your instance's URL to the @include section of the script to ensure it functions correctly.
  41.  
  42. Step 4: Save and Activate the Script
  43.  
  44. Save the Script:
  45. Click the save button in the userscript editor to store your changes.
  46. Enable the Script:
  47. Ensure the script is active. You might need to refresh your Mastodon page for the changes to take effect.
  48.  
  49. By following these steps, you can tailor your Mastodon interface to better suit your preferences.
Advertisement
Add Comment
Please, Sign In to add comment