UserScripts icon indicating copy to clipboard operation
UserScripts copied to clipboard

URRS: don't reformat posts/xxx/timeline links

Open tripleee opened this issue 6 years ago • 4 comments

The option "Change bare question URLs to the question's title." should arguably not change links which are not links to questions.

Currently it does this for timeline links, such as https://chat.stackoverflow.com/transcript/message/46547750#46547750, as shown in this screen shot of how my Chrome renders that chat message:

Screenshot 2019-06-19 at 21 59 23

The actual link in that message is https://stackoverflow.com/posts/56645139/timeline

I have not examined the source code to pinpoint the place where this is happening. I'm thinking anything which ends with /timeline should be easy to exclude, though I imagine there might be other patterns which should be added as well. (Resisting the urge. Wait, oops.)

tripleee avatar Jun 19 '19 19:06 tripleee

I'm more inclined to have the link text change to "Timeline for: Is there a function to check the continuity in a list?", rather than not change the link text at all. Assuming that was the resolution, I'd call this more an enhancement rather than a bug, but I could see it both ways.

makyen avatar Jun 19 '19 19:06 makyen

No objection, though then the option should perhaps be relabelled to reflect its wider scope...?

tripleee avatar Jun 19 '19 19:06 tripleee

Does the following changed text meet your expectations:

URRS changes to timeline, revisions, edit bare URLs

I'll also change the wording on that option.

makyen avatar Jun 19 '19 19:06 makyen

Looking good, yeah. Thanks!

tripleee avatar Jun 19 '19 19:06 tripleee