Skip to content

Instantly share code, notes, and snippets.

@Shaked
Last active November 13, 2015 23:40
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shaked/ac4090e11f5353fe9182 to your computer and use it in GitHub Desktop.
Save Shaked/ac4090e11f5353fe9182 to your computer and use it in GitHub Desktop.
Remove ynet ad against popup blockers

Remove ynet ad against popup blockers

If you are using a popup blocker, and you are annoyed by Ynet's message that tells you to disable it, you should follow this guide.

  • Go to: chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/options/index.html
  • Click on Edit and add: @@http://www.ynet.co.il/common/javascript/ads.js. Should look like: Popup Blocker Settings
  • Click on Save
  • Once done, save it and go to www.ynet.co.il and use hard referesh.

No more:

ynet's annoying message

Remove ynet ad against popup blockers

If you are using a popup blocker, and you are annoyed by Ynet's message that tells you to disable it, you should follow this guide.

In order to skip Ynet's popup block detection, on Chrome or Firefox, you will have to download an extension:

After doing that, you have to add a new script and install the following script:

//add a new script and use the following code: 

// ==UserScript==
// @name         Remove ynet ad against popup blockers
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Remove ynet ad against popup blockers
// @author       Shakedos
// @match        http://*.ynet.co.il/*
// @grant        none
// @run-at document-start
// ==/UserScript==
/* jshint -W097 */
'use strict';

// Your code here...
function killMessage(name) { 
    console.debug(name);
    window.canRunAds = true;  
}

killMessage("run at document start!");

Once done, save it and go to www.ynet.co.il and use hard referesh.

No more:

ynet's annoying message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment