Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Jor

Pages: [1] 2 3 4
1
Questions and Answers / Help required with IF-THEN filter
« on: August 21, 2002, 07:08:52 PM »
A site-specific filter I'm working on doesn't seem to work completely, even though it does work in the test fields.

I can't give out a test URl, as the site is password protected, but hopefully you'll be able to help me by looking at the source

Filter:
Name = "Add Missing [Foo] Javascript"
Active = TRUE
URL = "www.foo.com"
Limit = 512
Match = "(<script *src="/javascripts.js" *</script> </head>"
        "$SET(1=</head>)|"
        "</style> </head>$SET(0=</style>
)$SET(1=(</head>
)))"
Replace = ""
          "<script language="JavaScript" src="/fw_menu.js" "
          "type="text/javascript"></script>
"
          "<script language="JavaScript" src="/menu.js" "
          "type="text/javascript"></script>
"
          "<script language="JavaScript" src="/javascripts.js" "
          "type="text/javascript"></script>
"
          "1
$STOP()"


What this filter does, is add two or three required JS files, if they are missing. The first part always works (adding two more if only one is found), the second one only works in the test field.

This is the HTML that should match for #2 (And does, in the test view):
<head>
<style>
TD {font-size: 10pt;}
BODY {font-size: 10pt; font-family: Arial; color: FFFF80;}
</style>
</head>
<body bgcolor=black text=white link=FFFF80 vlink=FFFF80 alink=FFFF80>
<div style="text-align: center;">


Note: the source document is missing its <html> tag, but that shouldn't matter, right?

Edited by - Jor on 21 Aug 2002  20:16:55

2
Other / Opera Sidepanel filters
« on: August 15, 2002, 12:54:27 AM »
This filter is based on sidki's Fix <base> Target, but for a very specific use:

In Opera, sidepanel links always open in the sidepanel window (unless target=foo is used in the sidepanel pages). Using a quick rewrite of your code, I now found a way to get all sidepanels to open in new windows

[Blocklists]List.SidePanel = "..ListsSide Panels.txt"

[Patterns]
Name = "Opera Sidepanels open in new window"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)&$LST(SidePanel)"
Limit = 256
Match = "(<bases*)9"
        "("
        "(target=$AV(((_|)top|self|parent)3)7&$SET(1=9target="_blank"7))"
        "|"
        "((target=$AV(3))87&$SET(1=987))"
        "|"
        "(>&$SET(3=-empty-)&$SET(1=9 target="_blank">))"
        ")"
        "|"
        "((</head>)2&$SET(1=
<base target="_blank">
))"
Replace = "12$STOP()"


All sidepanels used would have to be listed in the SidePanel blocklist.

My list:
# Proxomitron4 URL killfile: $LST(SidePanel)
#
# by Jor
#
#
# Blocklist for use with the 'Sidepanels open in new window' filter. This file
# lists all sites currently used as Opera sidepanels.
#

custom.opera.com/~stephan/nu.nl.cgi
europe.cnn.com/desktop/content.html
my.opera.com/customize/panels/?rdf=


(The last entry is an RDF/RSS interpreter I use with many RDF or RSS feeds, including Slashdot)



Edited by - Jor on 15 Aug 2002  02:11:12

3
Questions and Answers / Proxomitron "mixing" URLs?
« on: August 13, 2002, 02:07:57 AM »
Just wondering if anyone else noticed this:

when opening several pages at once, or clicking a link while another page is loading in the background, occasionally Proxomitron will cause links to be mistaken. Example:

I am at www.foo.com , in the background www.bar.net is loading, I click a link to www.foo.com/new.html , and www.bar.net/new.html opens instead.
This may happen for several consecutive clicks on the link, even after the other page stopped loading, and doesn't seem to end untill a number of seconds have passed, or untill 'abort' is pressed on Proxomitron.

It tends to happen in Opera, and Mozilla, sometimes it is even triggered by sidepanels loading. (MSIE has no tabbed browsing or sidepanels, so chances of ever working on multiple pages fast enough for it to happen are slim.)

This probably has to do with 'Local connections persistance', as it never happens when I disable it, and the links are confused for up to 30 seconds after the last page item is loaded on www.bar.net when lcp is set to 30. I now have it set for 5 seconds, and it seldom happens, but occasionally it still does, and is quite annoying.

 

4
Security - General / Serious PHP vuln reported
« on: July 23, 2002, 02:13:37 AM »
Just thought I'd report it here as well...

http://www.theregister.co.uk/content/55/26316.html

 

5
Just thought I'd share my Opera button set with Proxomitron special buttons in place:

Download it here (Standard Opera6 format, may also work in Op4 or 5).

The special buttons are the following:
  • Document Properties (bookmarklet)
  • Read Cookie for site  (bookmarklet)
  • Display bypassed source (bypass..src..)  
  • Debug Proxomitron filters (dbug..)
  • Bypass web filters (bweb..)
  • Bypass outgoing header filters (bout..)  
  • Terminate Scripts (Tame Javascript function)
  • Translate to English  (Tame Javascript function)


A screenshot of what they look like can be found in this thread, top screenshot.

Please note I am not the author of the Basic button set, that is Jon S. Connor. I only created the reordered modified_buttons.ini and the new images for my custom buttons.

Basic (original) can be downloaded here at http://my.opera.com/

 

6
Privacy / Remove Kazaa headers
« on: July 18, 2002, 11:38:20 AM »
If you use Kazaa (or the spyware-free KazaaLite), be aware this program reports on you by sending specific headers to the supernodes. While these may be harmless, I don't like them leaving my machine.

The following header filters take care of the problem:

##
## Proxomitron Config File
##
## Remove Kazaa headers
##

[HTTP headers]
In = FALSE
Out = TRUE
Key = "X-Kazaa-IP: [out]"
Match = " & $LOG(CHeader X-Kazaa-IP removed: )"

In = FALSE
Out = TRUE
Key = "X-Kazaa-Network: [out]"
Match = " & $LOG(CHeader X-Kazaa-Network removed: )"

In = FALSE
Out = TRUE
Key = "X-Kazaa-SuperNodeIP: [out]"
Match = " & $LOG(CHeader X-Kazaa-SuperNodeIP removed: )"

In = FALSE
Out = TRUE
Key = "X-Kazaa-Username: [out]"
Match = " & $LOG(CHeader X-Kazaa-Username removed: )"


You can also download a mergable config:
Attachment: kazaa.cfg 928 Bytes

 

7
Privacy / Stop JS error reporting
« on: July 18, 2002, 11:33:50 AM »
This filter simply prevents browsers from generating Javascript errors that result due to Proxomitron filtering.

It is not needed by most current browsers, as they can disable the error reporting themselves, but embedded IE clients like the Winamp Minibrowser still generate tons of errors.

##
## Proxomitron Config File
##
## Prevent JS error reports
##

[Patterns]
Name = "Prevent JS error reports"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 256
Match = "<start>"
Replace = "<!--//--><script type="text/javascript">
"
          "function NoError() { return true; }
"
          "onerror = NoError;
"
          "</script>
"


 

8
Community Discussions (Non-Forum Related) / Taking a holiday :)
« on: June 20, 2002, 04:20:38 PM »
Hi guys,

I'll be leaving for two weeks tomorrow to the warm sun of Malta, so obviously wont be around

 

9
Site Specific / Kill Keenspot ads
« on: June 19, 2002, 01:33:42 PM »
If you read on-line comics hosted at the Keenspot network, you'll probably have seen the often annoying "news box" all sites host. Today I encountered yet another blinking flash one, so I was prompted to write a filter to kill them all
The other filter (top of page) strips all the site jump and news stuff from the top of the page, also killing the ad and cookie scripts.

[Blocklists]
List.KeenSpot = "..ListsKeenSpot Network.txt"

[Patterns]
Name = "Kill KeenSpot ads 1: Top of page stuff"
Active = TRUE
URL = "$TYPE(htm) & $LST(KeenSpot)"
Limit = 7500
Match = "<body 1> "
        "<script*</script> <script*</script> <script*</script> "
        "<script*</script> <script*</script>"
        "*<table*</table>*</table>*</table>"
Replace = "<body 1>
"
          "<span class="prox" kill="Keen Ads" detail="top"></span>"

Name = "Kill KeenSpot ads 2: Newsbox"
Active = TRUE
URL = "$TYPE(htm) & $LST(KeenSpot)"
Bounds = "$NEST(<table,</table>)"
Limit = 2048
Match = "<tables*> <tr> <tds*><p align="center"><a "
        "href="http://www.keenspot.com"><font color="#FFFFFF" "
        "size="1" face="Arial"><strong><img "
        "src="http://keenspot.com/data/newslightlogo.gif" "
        "border="0" width="157" height="28"></strong></font></a>"
        "</p> </td> </tr> <tr> <td*</td> </tr> </table>"
Replace = "<span class="prox" kill="Keen Ads" detail="news"></span>"


The blocklist KeenSpot Network.txt:
# Proxomitron4 URL killfile: $LST(KeenSpot)
#
# by Jor
#
#
# Blocklist for use with the 'Kill KeenSpot ads' filter. This file
# lists all sites currently in the Keenspot network.
#
# URL's taken from http://keenspot.com/ using Opera's CTRL+J function.
#


[^/]++keenspot.com/
(www.|)keenswag.com/
(www.|)alicecomics.com/
(www.|)ashfieldonline.com/
(www.|)avalonhigh.com/
(www.|)bloodlark.com/
(www.|)bobbins.org/
(www.|)boxjamsdoodle.com/
(www.|)brunothebandit.com/
(www.|)choppingblock.org/
(www.|)clanofthecats.com/
(www.|)coolcatstudio.com/
(www.|)crfh.net/
(www.|)elflife.com/
(www.|)everythingjake.com/
(www.|)exploitationnow.com/
(www.|)faans.com/
(www.|)fat-jesus.com/
(www.|)frankenstudent.com/
(www.|)funnyfarmcomics.com/
(www.|)genecatlow.com/
(www.|)gpf-comics.com/
(www.|)greystoneinn.net/
(www.|)hookedoncomics.com/
(www.|)houndshome.com/
(www.|)itswalky.com/
(www.|)justanothervice.com/
(www.|)krazylarry.com/
(www.|)livingingreytown.com/
(www.|)lizardcomics.com/
(www.|)lookwhatibroughthome.com/
(www.|)lostandfoundcomic.com/
(www.|)melonpool.com/
(www.|)mrbang.net/
(www.|)mrchuckshow.com/
(www.|)newshounds.com/
(www.|)nukees.com/
(www.|)ozyandmillie.org/
(www.|)pentasmal.com/
(www.|)poisonedminds.com/
(www.|)radcomics.com/
(www.|)reallifecomics.com/
(www.|)roadwaffles.com/
(www.|)rpgworldcomic.com/
(www.|)schlockmercenary.com/
(www.|)sinfest.net/
(www.|)soaprope.com/
(www.|)suburbanjungle.com/
(www.|)superosity.com/
(www.|)theclassm.com/
(www.|)ubersoft.net/
(www.|)wanderingones.com/
(www.|)wendycomic.com/
(www.|)whenigrowup.net/
(www.|)youdamnkid.com/


Edited by - Jor on 19 Jun 2002  16:03:42

10
Questions and Answers / Arne: Proxomitron FAQ question...
« on: June 13, 2002, 11:19:15 PM »
In ID #45, you have written the following:
quote:
One can check for a specific byte values. Just enter the value within an URL style hex escape as in... "[%2a]" for a single char or "[%20-%41]" for a range of values.
Could you clarify?

Does this mean I could check for a range of ANY ascii character this way?

 

11
A collection of tricks I learned while using Opera and Proxomitron. All hints assume you are using Proxomitron 4.3, and Opera 6.02 or later.

  • Enable HTTP 1/1 in Opera for proxies. To do this, open Opera6.ini (with Opera not running), and add this string under [Proxy]: Enable HTTP 1.1 for proxy=1 (default is 0).
  • Use a custom button set to add Proxomitron commands to the Main Bar. This can be done with Bookmarklets that add Prox prefixes to an URL.
  • Adjust network buffer size to 32kb or higher
  • Use 8 maximum connections per server. Most webpages will only retreive info from one site, so this will maximize the advantages of Prox's new pipelining. A good figure for max connections total is 20.
  • Add search engines to search ini which are mapped to Proxomitron command. If you also show the search field on either Personal bar, or in the address bar, this lets you copy&paste the current site URL in there to have it opened in Prox bypass or debug mode, or let you highlight a text URL to open it bypassed immediately.
  • Use a filter to print the current URL into the page, for use with the "Search engines" mentioned above. (See below)
  • Add a search engine that opens the highlighted URL, this disables the need for a Text to URL filter


An example Proxomitron filter to be used with this list:
Name = "Print URL in page"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 8
Match = "<end>"
Replace = "
<br /><center><span class="thisurl">This URL: u"
          "</span></center><br />
"


Example entries for your Opera6's search.ini:
[Search Engine 11]
Name=Open &URL
URL=%s
Query=
Key=u
Is post=0
Has endseparator=1
Encoding=utf-8
Search Type=5

[Search Engine 12]
Name=Prox &Debug
URL=http://dbug..%s
Query=
Key=d
Is post=0
Has endseparator=0
Encoding=utf-8
Search Type=0

[Search Engine 13]
Name=Prox &Web Bypass
URL=http://bweb..%s
Query=
Key=w
Is post=0
Has endseparator=0
Encoding=
Search Type=0

[Search Engine 14]
Name=Prox Complete &Bypass
URL=http://bypass..%s
Query=
Key=b
Is post=0
Has endseparator=1
Encoding=
Search Type=0
(Note: my Find in Page searchengine is #15, this has to be the last one.)

 

12
Microsoft Help / No VBscripting on XP?
« on: June 09, 2002, 06:13:04 PM »
I can't get any vbs scripts to run on WindowsXP, it claims "There is no script engine for file extension ".vbs".

I checked the registry, there is no entrty for .vbs present, but even forcing the scripting modules to run a vbs script (wscript "C:   empscript.vbs" or cscript "C:   empscript.vbs") doesn't work either.

XP won't allow me to install the Windows Scripting Host version 5.6, and a reinstall also didn't fix the problem. Any suggestions?

 

13
Other / Add a <link>bar to all pages
« on: June 07, 2002, 10:00:29 PM »
Mozilla is now out, and a little hack can get the link bar (or "site navigation" bar) working in there. So now browsers with support for <link> are Mozilla (all platforms), Opera for the Macintosh, iCab, Lynx, and a few obscure others, unfortunately this HTML2 tag is still not supported by other browsers (!), so for all other browsers, including Netscape 4, MSIE, Opera (not Mac), I have written this filter to add a link toolbar to the top of the page. It is still very much a test version, but it seems to work

It consists of two filtes, one to preserve stylesheets served by the <link> tag, and the other does the actual work. Styling is done by an entry in your Prox.css or Links.css, also given below.

The filters:
[Patterns]
Name = "Link toolbar: Preserve Stylesheets"
Active = TRUE
URL = "$TYPE(htm) &$OHDR(User-Agent:(^*Gecko*))"
Bounds = "<links*>"
Limit = 512
Match = "<link 1 rel=$AV(stylesheet) 2>"
Replace = "<link 1 rel="stylesheet" 2>"

Name = "Link toolbar"
Active = TRUE
URL = "$TYPE(htm) &$OHDR(User-Agent:(^*Gecko*))"
Bounds = "<links*>"
Limit = 512
Match = "<link (*rel=$AV(1) & *href=$AV(*2) & "
        "*title=$AV(*3))*>"
Replace = "<a href="2" title="3" class="linkbar">[Link: 1]</a> "


The CSS to add to your own CSS file:
/* The Link bar: */
.linkbar
{
  background-color : green !important;
  color : white !important;
  border : thin solid white !important;
  font-size : xx-small !important;
  text-align : center !important;
  margin : 1em -0.5em 1em 0em !important;
}
.linkbar:hover
{
  background-color : red !important;
  color : yellow !important;
}


As you can see I messed with the margins some, this is to make sure it will stay in the top left of the page, and have almost no space between two link items. The default style behaviour is to put the links inside a green block, which turns into red when the mouse is hovered over it. The title attribute is used to display additional information.

Obvious problem: this filter breaks a frameset which also uses <link> (I have never encountered both in the same site tho). If you have any suggestions on how I may fix this?

<link> test pages:
http://www.subotnik.net/html/link.html.en and
http://www.euronet.nl/~tekelenb/WWW/LINK/

[Edit: added  &$OHDR(User-Agent:(^*Gecko*)) to the URL match, so when using a browser based on Gecko (such as Mozilla 1.0 Gold) <link> tags are not filtered. Using the built-in link bar is always preferable.]

Edited by - Jor on 08 Jun 2002  00:01:57

14
Other / Mozilla users: update your links.css/prox.css!
« on: June 06, 2002, 10:23:12 PM »
Now that Mozilla 1.0 is out, there is finally a browser which supports the CSS property :hover the way it was supposed to, so people using a links.css or prox.css should update their file:

Instead of using something like
:hover
{
  text-decoration : underline overline;
}
, now use
a:hover
{
  text-decoration : underline overline;
}


If you do not alter this... Mozilla will display your hover style for all elements!

 

15
Cosmetic / Kill clueless ALT attributes
« on: June 03, 2002, 11:44:03 AM »
I forgot where I found this filter, but made a small alteration to it:

[Patterns]
Name = "Kill clueless ALT attributes"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)"
Bounds = "<i(mg|nput)s*>"
Limit = 256
Match = "1 alt=$AV((*.(gif|png|jpg|jpeg|jpe|bmp|xbm)*)|*size*b)"
        " 2"
Replace = "1 alt="" 2"


This will remove any alt attributes which contain the image name itself, or it's filesize. Replace alt="" in the replace section with whatever you like, or leave it blank.

Edited by - Jor on 18 Jun 2002  15:49:00

Pages: [1] 2 3 4