Skip to content

Commit

Permalink
abc
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperZombi committed Oct 10, 2022
1 parent e163c25 commit 63f69f8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
9 changes: 3 additions & 6 deletions chrome/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,10 @@ function hide_icon(target_svg){
if (icon[0]){
if (target_svg == icon[0].getElementsByTagName('path')[0].getAttribute('d')){
if (arr[i].parentElement == document.querySelector('ytd-download-button-renderer')){
arr[i].parentElement.style.visibility = 'hidden';
arr[i].parentElement.style.width = 0;
arr[i].parentElement.remove()
}
else{
arr[i].style.visibility = 'hidden';
arr[i].style.width = 0;
arr[i].remove()
}
break
}
Expand Down Expand Up @@ -100,8 +98,7 @@ function hideAllText_onButton(){
for (let i = 0; i < arr.length; i++){
let text_element = arr[i].querySelector("span[role='text']")
if (text_element){
text_element.parentElement.style.visibility = 'hidden';
text_element.parentElement.style.width = 0;
text_element.parentElement.remove()
let icon = arr[i].querySelector("yt-icon").parentElement;
icon.style.marginLeft = 0;
icon.style.marginRight = 0;
Expand Down
6 changes: 2 additions & 4 deletions pip.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 63f69f8

Please sign in to comment.