Xhamster - No related Video links (Remove their "#mlrelated" part in address bar) v.0.36

Remove "#mlrelated" part in address bar (when you open a related video from the Video page)

Author
janvier56
Daily installs
0
Total installs
288
Ratings
4 0 0
Version
0.36
Created
2017-06-05
Updated
2018-11-28
License
N/A
Applies to

For The NEW Desidn of Xhamster Design (since 05.2017)

Modify Related Links on the video player page:
split the "?from=video_related" at the end on them so you have a clean bookmarkable link and don't foolish your visited links .....
Thanks to phlegomatic:
But if you just want to delete the #related in the address you could just collect the current link, remove #related, and then go to there.


I don't know why but, randomly, Xhamster use 2 sort of links about their related videos:
- OLD links
Before:
https://xhamster.com/movies/6063809/xsml_svelte_white_vs_xxxl_bbc.html?from=video_related
After:
https://xhamster.com/movies/6063809/xsml_svelte_white_vs_xxxl_bbc.html

- New related links:
For NEW videos links (they change "/movies/" by "/videos/":
Before:
https://xhamster.com/videos/tout-dans-mon-petit-trou-4121315?from=video_related
After:
https://xhamster.com/videos/tout-dans-mon-petit-trou-4121315

Idea from:
jquery to modify a link [stackoverflow]