YWN Coffee Room » Computers / Electronics / Online

The absolute best filter - for InternetExplorer only

(8 posts)
  • Started 11 months ago by HaLeiVi
  • Latest reply from HaLeiVi

Tags:

No tags yet.

  1. HaLeiVi
    Plays the aeolian harp by air

    I've noticed a while ago that the filters offer what I didn't need and don't offer what I really need. They block me from going to places that I wouldn't go, but can't block pictures that I don't want from sites that are otherwise fine.

    Therefore, I made a little script that will enable me to at least get rid of a picture once it shows up. You just right-click over the picture and press "-", or click on "Toss-Image". This only works in InternetExplorer, and does not work with Flash pictures/videos.

    If people are interested in this, I can either post a link to it or I can post code that you copy into Notepad and save it as "LoadBestFilter.js", and then click on the newly saved file to install it.

    This is not meant to replace a conventional filter, just to complement it.

    Posted 11 months ago #
  2. -™
    dash

    Why don't you wrap it in "code" tags and post it?

    Posted 11 months ago #
  3. Could you post the link/code?
    Thanks

    Posted 11 months ago #
  4. thehock
    Member

    A long time ago (i.e. have no idea what I did and if it can be done in the latest version of IE) I changed my IE settings to not show pictures by default. This is helpful for those sites. However, there are some items (videos?) that auto-play and the setting does not help for that.

    Posted 11 months ago #
  5. YW Moderator-42
    Life, The Coffee Room, and Subtitles.

    Please post the code.

    I use an add-on called ImgLikeOpera in Firefox which automatically blcoks all images unless I right click and choose to load that particular image. I can also set filters to always show images for certain known sites.

    Posted 11 months ago #
  6. HaLeiVi
    Plays the aeolian harp by air

    Here goes:

    fs = new ActiveXObject("Scripting.FileSystemObject")
    ws = new ActiveXObject("WScript.Shell")
    
    reg   = "Windows Registry Editor Version 5.00"
    reg += "[HKEY_CURRENT_USER\\Software\\Microsoft\\Internet Explorer\\MenuExt\\&Toss Image]"
    reg += "\"Contexts\"=dword:00000002"
    reg += "@=\"file://C:\\\\Program Files\\\\YummyPrograms\\\\ridPic.htm\""
    
    htm   = "<SCRIPT>\r\n"
    htm += "	external.menuArguments.event.srcElement.style.filter = \"alpha(opacity=0)\"\r\n"
    htm += "</SCRIPT>"
    
    fol = "C:\\Program Files\\YummyPrograms"
    if (!fs.folderExists(fol)) fs.CreateFolder(fol)
    hnm = fol + "\\" + "ridPic" + ".htm"
    if(!fs.fileExists(hnm))
    {
    	fl = fs.OpenTextFile(hnm, 2, true)
    	fl.Write(htm)
    }
    else {
    	ws.popup("BestFilter is already installed. How could you have not noticed!?", 5, "Best Filter Installer", 0);
    	WScript.Quit();
    }
    menu = "Toss&-Image"
    key = "HKCU\\Software\\Microsoft\\Internet Explorer\\MenuExt\\" + menu + "\\"
    ws.RegWrite(key, "file://" + fol + "\\ridPic.htm")
    ws.RegWrite(key + "Contexts", "00000002", "REG_DWORD")
    
    ws.popup("BestFilter is now succesfully installed. Happy holying.", 5, "Best Filter Installer", 0)

    To disable images in general, go to Internet Options, then click on the Advanced tab. Scroll down until you see the option for images. For Flash videos, go to Internet Options, then Programs. Click on the 'Manage Add-ons' tab and disable Flash.

    Posted 11 months ago #
  7. chossidshlomo
    Member

    i saved the file onto notepad. what should i do now?

    Posted 11 months ago #
  8. HaLeiVi
    Plays the aeolian harp by air

    The file should be renamed to "loadFilter.js" The ".js" at the end is the important part.

    Posted 11 months ago #

RSS feed for this topic

Reply

You must log in to post.