Greasy Fork is available in English.

* - window.open = false

prevents new windows/tabs from opening via javascript

Δημιουργός
puzzle
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
64
Βαθμολογίες
1 0 0
Έκδοση
1.0.2
Δημιουργήθηκε την
06/05/2023
Ενημερώθηκε την
15/08/2023
Άδεια
Μη διαθέσιμη
Εφαρμόζεται σε
Όλοι οι ιστοχώροι

Some sites open ads in new windows/tabs (often they use tricks to make such windows hardly noticeable: make them very small, place them on the edge of the parent window etc.) - this simple script prevents that (it's not a silver bullet, but it works in most cases).

Note that the script makes no difference whether it's an ad in a new window or something useful like a login popup - it just prevents new windows/tabs from opening with javascript in general.

Thus, this script can be considered as an emergency tool in case you find a useful site that uses the methods described above(remember to disable it in the tampermonkey menu as soon as you are done visiting such a site, as it runs on all sites by default and is likely to break standard functionality).