-2

How do I let Brave browser redirect and allow pop-ups for a particular website? Let's say we want popups and redirects at https://example.com/.

3
  • I read the similar questions that Superuser presented while I was typing. None of them quite matched the question I'm asking. My Q is on topic and very specific. It shouldn't be penalized for its brevity.
    – Paulb
    Commented Mar 23, 2023 at 18:51
  • 1
    What's very specific here? All I see is 2 sentences. And I'm not even sure for which browser you need the answer as title/tags speak about both, but content onl mentions Brave.
    – Destroy666
    Commented Mar 23, 2023 at 18:54
  • The issue may be that the query seems like something that would already be part of a FAQ document or already answered elsewhere. In How do I ask a good question there is a note to "thoroughly searched for an answer" and also "tell us what you found and why it didn’t meet your needs."
    – Blindspots
    Commented Mar 23, 2023 at 20:17

1 Answer 1

2

you can use tampermonkey chrome extension to do that,
here is script :

// ==UserScript==
// @name         redirect at certain website
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        http*://*example.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // URL target
    let redirect_to_url=`https://www.github.com`
setTimeout(function () {
    alert(`popup message: redirect`)
    let f;
        if (confirm(`redirect to[${redirect_to_url}]\n confirm?`)) {
            f= true;
        } else {
            f= false;
        }
        if(f){
            // GM_openInTab(b, { active: true, insert: true, setParent :true })
            // jump in place
            location.href=redirect_to_url;
        }else{
        }
},1000); // after 1 second ,the script begin to work

})();

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .