Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Commit

Permalink
Fixed links being clickable in ThreadPane
Browse files Browse the repository at this point in the history
  • Loading branch information
WombatFromHell committed Aug 25, 2019
1 parent d3942d6 commit e1ffcdb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/thread_pane.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,7 @@ let ThreadPane = {
const $rootPostBodyDiv = $('<div class="cs_thread_pane_root_body">').html(rootBodyHtml);
$rootPostBodyDiv.find("a").replaceWith(function() {
// exclude expando children
return $(`
<span class="cs_thread_pane_link">
<a href="${this.href}">${this.innerText.replace(/[\ue90d\ue907]+/, "")}</a>
</span>`);
return $(`<span class="cs_thread_pane_link">${this.href}</span>`);
});
// remove media containers from Thread Pane parent
$rootPostBodyDiv.find(".media-container").remove();
Expand Down

0 comments on commit e1ffcdb

Please sign in to comment.