3 ms·
Tried to make one that would highlight the OP's username on HN, but I ran it twice and neither appears to do anything: https://www.tweeks.io/share/script/8d84b
by qingcharles 1y ago
Tried to make one that would highlight the OP's username on HN, but I ran it twice and neither appears to do anything:
https://www.tweeks.io/share/script/8d84bece6f7740c0b53486c1 https://www.tweeks.io/share/script/8d84bece6f7740c0b53486c1
https://www.tweeks.io/share/script/9c1736ea15694e9883ad969f https://www.tweeks.io/share/script/9c1736ea15694e9883ad969f
- jmadeano 1y agoAh I see what happened. From those links, I can see the pattern for the script is *://news.ycombinator.com/item?id=* . Some browsers don't support the wildcard (*) in the query param, so it would be better if that match pattern was *://news.ycombinator.com/item* . In other words, it isn't that the script does nothing, rather the script isn't actually being applied/running on the page. You can verify this by opening the extension on the page, going to Library tab, and seeing if the script appears in "Modifications for Current Page" or "Other Modifications" I already updated the agent so that it will should no longer generate match tags like that. Try again and hopefully it should work (and let me know if not). Thanks for the comment and sorry for the trouble!
- qingcharles 1y agoFix works perfect. Have nice highlighted usernames now :)
- jmadeano 1y agoAwesome! If you run into any other issues feel free to email me at contact@trynextbyte.com or join our discord server (https://www.tweeks.io/discord https://www.tweeks.io/discord). Always looking for more feedback to improve :)
- qingcharles 1y agoNo problem, lemme try it again and see what it creates. Plans never survive their first contact with the enemy :)