Greasy Fork is available in English.

Block Youtube Users

Hide videos of blacklisted users/channels and comments

< Feedback on Block Youtube Users

Review: Good - script works

§
Posted: 2022.06.20.
Edited: 2022.06.20.

I'm not great at java script but I was able to add ctrl+b keybind to allow menu to open with keypress event trigger
having issue though making the x's appear whenever menu is pulled up with new keybind. the following was what I added after })(jQuery);

//personally added for keypress event triggers
(function() {
'use strict';
function onCtrlB() {
// alert("Ctrl B pressed!");
$('#byu-options').slideToggle();
$(this).css('font-weight', $(this).css('font-weight') === '500' ? '' : '500');
Values.menuOpen = !Values.menuOpen;
if (!Values.storageAdd) {
if (Values.menuOpen) search();
else $('.byu-add').remove();
}
}

function onKeydown(evt) {
// Use https://keycode.info/ to get keys
if (evt.ctrlKey && evt.keyCode == 66) {
onCtrlB();
}
}
document.addEventListener('keydown', onKeydown, true);
})();


Hopefully @Schegge can help with this issue. Ive tried numurios things including adding
// do the thing
function findMatch(user, newAdd) {
// add [x] when menu is open or always add selected
if ((Values.menuOpen || Values.storageAdd) && !user.siblings('.byu-add').length) {
$('[X]').insertBefore(user);
}

to it but not having any luck, thank you for this great script

ScheggeAuthor
§
Posted: 2022.07.24.

I've updated the script, you can open the menu by pressing ctrl+alt+b

§
Posted: 2022.07.24.
Edited: 2022.07.24.

I've updated the script, you can open the menu by pressing ctrl+alt+b

Thanks! Now I can get rid of my hack job :)

§
Posted: 2022.07.24.

So now X's show but now clicking on B does nothing. Obviously I dont care but other users might have issue. Could be a possibility that a combo of all my extensions is the issue though but we'll have to waite if other users report same issue I guess. Thanks for the update this is a must have script.

ScheggeAuthor
§
Posted: 2022.07.24.

So now X's show but now clicking on B does nothing. Obviously I dont care but other users might have issue. Could be a possibility that a combo of all my extensions is the issue though but we'll have to waite if other users report same issue I guess. Thanks for the update this is a must have script.

I'm already aware of the issue, thank you. I'm working on it.

§
Posted: 2022.09.15.

going to add here so I don't clog up reviews. I seem to be having a issue where videos are playing in the background while watching something different. I disabled all other scripts one by one and so far seems this one was giving me issue.

I'm going to downgrade to older version of your script and see what happens.

§
Posted: 2022.09.15.

going to add here so I don't clog up reviews. I seem to be having a issue where videos are playing in the background while watching something different. I disabled all other scripts one by one and so far seems this one was giving me issue.

I'm going to downgrade to older version of your script and see what happens.

I take this back last script I disabled and didn't have issue for over hour but now its back.
Sorry about that and appreciate your work.

Post reply

Sign in to post a reply.