I am not coder, but i try.....
I try to use a script which work, the links are cleaned of the "#mlrelated" part.
But when i click these cleaned links, it re-add the "#mlrelated" part to the url opened (Why ? how to remove/change this click event ?):
function($) {
function removeAllContentTypesFromLinks() {
var $a = $('.mixed-list .item.video .thumb-container');
$a.each(function() {
var $this = $(this),
href = $(this).attr('href').split('#mlrelated')[0];
$this.attr('href', href);
});
}
removeAllContentTypesFromLinks();
Request: Add support for Xhamster (NEW DESIGN) related links
It's links in related videos from videos pages.
I am not coder, but i try..... I try to use a script which work, the links are cleaned of the "#mlrelated" part. But when i click these cleaned links, it re-add the "#mlrelated" part to the url opened (Why ? how to remove/change this click event ?): function($) { function removeAllContentTypesFromLinks() { var $a = $('.mixed-list .item.video .thumb-container'); $a.each(function() { var $this = $(this), href = $(this).attr('href').split('#mlrelated')[0]; $this.attr('href', href); }); } removeAllContentTypesFromLinks();
}(jQuery));