GithubHelp home page GithubHelp logo

gggccc44 / ultra-popup-blocker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eskander/ultra-popup-blocker

0.0 0.0 0.0 605 KB

Configurable popup blocker that blocks all popup windows by default with a permission model.

Home Page: https://eskander.tn/ultra-popup-blocker

License: MIT License

JavaScript 78.91% CSS 15.06% HTML 6.03%

ultra-popup-blocker's Introduction

Ultra Popup Blocker

Warning No further development is planned. The script will continue to work as is.

Ultra Popup Blocker (or UPB for short) is a lightweight Popup Blocker that aims to block all popup windows by default, (even good, unharmful, user-initiated ones) on a permission model, while providing a clean Permission manager for easy configuration.

Why another popup blocker?

Built-in Firefox and Chrome popup blockers blocks only the popups that were created automatically via scripts on page load etc. When you click on a button on the page, it won't block it. However, malicious websites can create JS code that will launch the popups whenever you click on any blank space on the page for instance.

How does it work?

In JavaScript, functions are first-order citizens. It means you can store a function in a variable and pass it freely. You can also modify the native functions provided by the browser, like 'window.open'. Here, we override 'window.open' with our own implementation which prompts the user to see whether he really wants to open a popup window.

Managing permissions

Use the permission manager provided with Ultra Popup Blocker to set which websites are trusted to open popups freely.

Install instructions

  1. Get a userscript manager from your browser's addon store:
  2. Add Ultra Popup Blocker from one of the following sources:

GreasyFork OpenUserJS GitHub

ultra-popup-blocker's People

Contributors

dependabot[bot] avatar eskander avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.