Skip to content

Commit

Permalink
fix: hide the audio bar in pdf (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhi Huang authored May 30, 2022
1 parent 4655764 commit 26d3af5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/pdf/pdf.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ func hideRedundantElements(downloadComments bool) chromedp.ActionFunc {
if(audioPlayer){
audioPlayer.style.display="none"
}
var audioFloatBar = document.querySelector('div[class*="audio-float-bar"]');
if(audioFloatBar){
audioFloatBar.style.display="none"
}
var leadsWrapper = document.querySelector('div[class^="leads-wrapper"]');
if(leadsWrapper){
leadsWrapper.style.display="none";
Expand Down

0 comments on commit 26d3af5

Please sign in to comment.