Subreddit tab icons

Replaces tab icons (favicons) on reddit with icons of subreddits.

< 腳本Subreddit tab icons的回應

評論:正評 - 腳本一切正常

§
發表於:2023-08-26

Hello,

On my side, I don't see any favicon like the screenshots show...

On your side, it works or do you have any idea what's going on please ?

Examples :
- https://www.reddit.com/r/revancedextended/
- https://www.reddit.com/r/galaxys10/comments/to9c3o/which_new_features_the_s10_line_gets_with_one_ui/

Thank you for your answer.

Google Chrome Browser with Tampermonkey

andrybak作者
§
發表於:2023-08-26
編輯:2023-08-26

Hello, Cool722. Thank you for your interest in the userscript.

The screenshots you provided don't include Tampermonkey's icon. Could you double check that the script is installed and enabled? You can make another screenshot like the one attached to this comment.

Once you make sure the script is enabled, please do the following:

  1. Reload the page
  2. Please open the browser's console (F12 or Ctrl+Shift+J).
  3. Filter the message using [reddit tab icons]. See example of what approximately you should see in the screenshot.
  4. Copy the messages and include them in your reply.

Note, that not all subreddits on Reddit have a separate icon. r/revancedextended/ has an icon, and so does r/galaxys10.

§
發表於:2023-08-27

Also, it's the same result on my side with the version 5 tested on Violentmonkey...

In addition, I'm on the new Reddit interface but I don't know if it applies to everyone as indicated here -> https://greasyfork.org/fr/scripts/407466-unedit-and-undelete-for-reddit/discussions/178701

image

I hope this helps you :

image

[reddit tab icons] Replacing on new page https://www.reddit.com/r/revancedextended/ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:50 [reddit tab icons] Couldn't find the icon in HTML of New Reddit. warn @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:50 userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:53 [reddit tab icons] Trying again after 1000 ms... userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:53 [reddit tab icons] Added MutationObserver sentry.js:682 [reddit tab icons] Loading from "https://www.reddit.com/r/revancedextended/about.json"... sentry.js:682 [reddit tab icons] Converted communityicon from "https://styles.redditmedia.com/t57lb5p4/styles/communityIconwb4to5fo24ab1.png?width=256&s=273f40df5e36e704af120ca8158d1c7771b4a64d" to "https://styles.redditmedia.com/t57lb5p4/styles/communityIconwb4to5fo24ab1.png?width=256&s=273f40df5e36e704af120ca8158d1c7771b4a64d". sentry.js:682 [reddit tab icons] Couldn't find favicon elements. (anonymous) @ sentry.js:682 sentry.js:682 [reddit tab icons] Trying again after 2000 ms... sentry.js:682 [reddit tab icons] Couldn't find the icon in HTML of New Reddit. (anonymous) @ sentry.js:682 sentry.js:682 [reddit tab icons] Trying again after 4000 ms... ​ [reddit tab icons] Replacing on new page https://www.reddit.com/account/sso/onetap/?experimentd2xsafarionetap=enabled&experimentd2xgooglessogisparity=enabled&experimentd2xammodaldesignupdate=enabled&experimentmwebssologinlink=enabled&shreddit=true&useaccountmanager=true ​ [reddit tab icons] Could not find subreddit URL in "https://www.reddit.com/account/sso/onetap/?experimentd2xsafarionetap=enabled&experimentd2xgooglessogisparity=enabled&experimentd2xammodaldesignupdate=enabled&experimentmwebssologinlink=enabled&shreddit=true&useaccountmanager=true". Resetting the icon to the default. warn @ userscript.html?name…6a5-6430bd9e4ce9:50 ​ [reddit tab icons] Couldn't find favicon elements. warn @ userscript.html?name…6a5-6430bd9e4ce9:50 ​ [reddit tab icons] Trying again after 1000 ms... ​ [reddit tab icons] Added MutationObserver sentry.js:682 [reddit tab icons] Loading from "https://www.reddit.com/r/revancedextended/about.json"... sentry.js:682 [reddit tab icons] Converted communityicon from "https://styles.redditmedia.com/t57lb5p4/styles/communityIconwb4to5fo24ab1.png?width=256&s=273f40df5e36e704af120ca8158d1c7771b4a64d" to "https://styles.redditmedia.com/t57lb5p4/styles/communityIconwb4to5fo24ab1.png?width=256&s=273f40df5e36e704af120ca8158d1c7771b4a64d". sentry.js:682 [reddit tab icons] Couldn't find favicon elements. (anonymous) @ sentry.js:682 sentry.js:682 [reddit tab icons] Trying again after 8000 ms... sentry.js:682 [reddit tab icons] Couldn't find the icon in HTML of New Reddit. (anonymous) @ sentry.js:682 sentry.js:682 [reddit tab icons] Trying again after 16000 ms... sentry.js:682 [reddit tab icons] Loading from "https://www.reddit.com/r/revancedextended/about.json"... sentry.js:682 [reddit tab icons] Converted communityicon from "https://styles.redditmedia.com/t57lb5p4/styles/communityIconwb4to5fo24ab1.png?width=256&s=273f40df5e36e704af120ca8158d1c7771b4a64d" to "https://styles.redditmedia.com/t57lb5p4/styles/communityIconwb4to5fo24ab1.png?width=256&s=273f40df5e36e704af120ca8158d1c7771b4a64d". sentry.js:682 [reddit tab icons] Couldn't find favicon elements. (anonymous) @ sentry.js:682 warn @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:50 setFavicon @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:122 useSrData @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:176 (anonymous) @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:198 Promise.then (async) replaceFaviconOld @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:198 r @ sentry.js:3054 sentry.js:682 [reddit tab icons] Trying again after 32000 ms... sentry.js:682 [reddit tab icons] Couldn't find the icon in HTML of New Reddit. (anonymous) @ sentry.js:682 warn @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:50 replaceFaviconNew @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:211 r @ sentry.js:3054 setTimeout (async) (anonymous) @ sentry.js:3306 tryAgain @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:115 setFavicon @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:123 useSrData @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:176 (anonymous) @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:198 Promise.then (async) replaceFaviconOld @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:198 r @ sentry.js:3054 sentry.js:682 [reddit tab icons] Trying again after 64000 ms... sentry.js:682 [reddit tab icons] Loading from "https://www.reddit.com/r/revancedextended/about.json"... sentry.js:682 [reddit tab icons] Converted communityicon from "https://styles.redditmedia.com/t57lb5p4/styles/communityIconwb4to5fo24ab1.png?width=256&s=273f40df5e36e704af120ca8158d1c7771b4a64d" to "https://styles.redditmedia.com/t57lb5p4/styles/communityIconwb4to5fo24ab1.png?width=256&s=273f40df5e36e704af120ca8158d1c7771b4a64d". sentry.js:682 [reddit tab icons] Couldn't find favicon elements. (anonymous) @ sentry.js:682 warn @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:50 setFavicon @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:122 useSrData @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:176 (anonymous) @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:198 Promise.then (async) replaceFaviconOld @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:198 r @ sentry.js:3054 setTimeout (async) (anonymous) @ sentry.js:3306 tryAgain @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:115 replaceFaviconNew @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:212 r @ sentry.js:3054 setTimeout (async) (anonymous) @ sentry.js:3306 tryAgain @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:115 setFavicon @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:123 useSrData @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:176 (anonymous) @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:198 Promise.then (async) replaceFaviconOld @ userscript.html?name=Subreddit-tab-icons.user.js&id=b9059cae-6892-4645-86a5-6430bd9e4ce9:198 r @ sentry.js:3054 sentry.js:682 [reddit tab icons] Trying again after 128000 ms...

andrybak作者
§
發表於:2023-08-27

Great, thank you. Several things:

  1. Which OS are you using? I see that the Chrome version is 109.
  2. Please upgrade to version 6. If it doesn't fix the bug, please repeat the steps from my first reply. I've added more log messages to help with the investigation.

Tip: for formatting such big snippets of console log, use Markdown replies with following formatting:

```
put them inside triple backticks (key above the TAB on English layout)
```
§
發表於:2023-08-27

1 As I'm running Windows 8.1, Google Chrome forced me to stay on their version 109 :-(
2 After the update to version 6, everything is working fine now like the screenshot shows :-)
3 Super and thanks a lot for this Markdown Tip which makes it possible to better present codes, logs...

Thank you so much for your speed, your kindness and for all ;-)

發表回覆

登入以回復