Allow popup if its come from bookmarklet

i made custom bookmarklet, that will open a new page after asking infromation from user. i cannot do that in protected site in brave browser because. i need to turn the shield off from site setting. but it will also turn off the ad blocker. i dont want to do that.

this is what my bookmarklet looks like, should work if i turn off the shield:

javascript: (()=>{    let searchURL= q=>`https://www.google.com/search?q=${q.split(" ").map(q=>encodeURIComponent(q)).join("+")}`;    let search= q=>window.open(searchURL(q));search(document.querySelector(".title-name").textContent)})()

you can run this in anime page of Myanimelist website

my expectation i should able to open popup by my bookmarklet

I can’t see the full code, so can’t diagnose it. However, this works when shields are up:

javascript:window.open("https://example.com/"+prompt("Path"))