This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function blockAllRequestGroup() { | |
let reqList = document.querySelector('.uiList._4kg._4kt._6-h._6-j').children | |
for (let i = 0; i < reqList.length; i++) { | |
let arrowActionButton = reqList[i].querySelector('.uiPopover').children[0].click() | |
let popOverActions = document.querySelector('.uiContextualLayer.uiContextualLayerBelowRight') | |
popOverActions.querySelector('ul').lastChild.click() | |
console.log(`%c ${reqList[i].querySelector('a._z_3').innerText} %c is blocked `, 'background:#35495e ; padding: 5px; border-radius: 3px 0 0 3px; color: #fff', 'background:#41b883 ; padding: 5px; border-radius: 0 3px 3px 0; color: #fff') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getYoutubeVideoTitleInList() { | |
let items = document.querySelectorAll('h4.style-scope') | |
let strTitles = '' | |
count = 0 | |
while(count < items.length - 1) { | |
let title = items[count].innerText.trim() | |
strTitles += '\n' + title | |
count++ | |
} |