Skip navigation

Sign up | Lost password? | Help

My program for Opera

Block javascript pop-ups

,

Unfortunately Opera is not able to block "Pop-Ups v2.0" created with JavaScript (example).
But in most cases such advertising is added by external js, and it can be simply blocked with block-external-scripts.js (worked in Opera 8-10; about installation userjs). Hover mouse on lower right corner of page and press on the button for unblocking/blocking.

Also see BlockIt.js from shoust.

In Russian
Универсальная блокировка "всплывающих окон" реализованных на javascript.

Подобная реклама (пример) применяется всё чаще, видимо из-за наличия во всех браузерах блокировщиков "обычных" всплывающих окон. В принципе, бороться с ней достаточно сложно, но к счастью, в большинстве случаев такая реклама добавляется с помощью внешних js-скриптов, которые несложно заблокировать с помощью UserJS. При этом также будет заблокировано и некоторое количество обычной рекламы и счётчиков.

Для установки UserJS, просто скопируйте block-external-scripts.js в вашу папку UserJS. Если её ещё нет, то создайте папку (например, Opera\userjs) и укажите её в Настройки->Дополнительно->Содержимое->Настройки Javascript. Чтобы отключить блокирование скриптов на текущем сайте, наведите мышь на нижний правый угол страницы и нажмите на выехавшую кнопку.

Upd.
Изложил в заметке основные способы блокирования рекламы в Opera.

Upd. №2
Also see hide-js-popups.js.

Descriptions in opera:plugins and moreUpdate google-translate.js.

Comments

Anonymous 5. May 2008, 01:57

Anonymous writes:

I palced both files "block-external-scripts.js" and "blockexternal.js" in the "userjs" folder and I had some trouble with slashdot.org where the comments (with lower scores) will not show when I click on the title. Reloading the page did not work. I disabled the "block-external-scripts.js" and reloaded the page and it was back to normal.

I would like to add that "AdBlocker.css" still works for me on Opera 9.27

Lex1 6. May 2008, 09:24

Add // @exclude http://*slashdot.org/* in block-external-scripts.js

Also you can use Ujs disabler for disabling on certain sites.
Button, "Disable/Enable block external scripts on this site"="Execute Program, "d:\opera\program\ujs.exe", "/exclude block-external-scripts.js %u" & Reload stylesheets & Refresh display"


AdBlocker.css


Fanboy's AdBlock List - better.

deckard_slash 6. May 2008, 11:06

could you see this example : http://www.guapaslandia.es/foro/index.php

Lex1 6. May 2008, 12:19

deckard_slash
As variant:
// ==UserScript==
// @include http://www.guapaslandia.es/foro/*
// ==/UserScript==
window.opera.defineMagicVariable( 'initfunction', function (){return null}, function (){return null} );

Anonymous 3. July 2008, 09:16

Max writes:

Спасибо огромное!!! :D С ума можно сойти с этой гребаной рекламой!

Anonymous 6. June 2009, 07:18

Petr_K writes:

I think after installing ver. 10b1 the hint "blocked script" remains hidden now. With ver. 10a got no troubles. Please check it.

Many Thx

Lex1 6. June 2009, 09:13

Worked for me, at least on this site.

Anonymous 6. June 2009, 12:14

Petr_K writes:

Hallo lex
Thx for your info. It was my fail on zoom. What can I edit at script to change the corner position. E. g. from right to left etc. Be so kind and give me an advice about.
Many Thanks

Lex1 6. June 2009, 14:04

fail on zoom


Fixed.

from right to left


Replace «right:0» on «left:0» and «docEle.clientWidth - e.clientX < 40» on «e.clientX < 40».

Anonymous 6. June 2009, 16:51

Petr_K writes:

Many Thx for your helping.

Molkio 18. June 2009, 11:16

Thanks!Works perfect!:wink:

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies