The Un-Official Proxomitron Forum
A little help with deviantart.... - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Filters (/forumdisplay.php?fid=38)
+--- Forum: Filter Help/Request (/forumdisplay.php?fid=31)
+--- Thread: A little help with deviantart.... (/showthread.php?tid=781)



A little help with deviantart.... - Maji - Apr. 11, 2006 08:49 PM

Hello. Once again, I have a filter request. Smile!

I would like to be able to turn all deviantart links of the form

http://tn*.deviantart.com/\1/300W/\2

into clickable html links pointing to

http://ic1.deviantart.com/\1/\2

where, in this case, \1 and \2 are the proxomitron variables which will hold the relevant parts of the link to be created.

Furthermore, I would like to replace ALL of the links on a given deviantart page of the form

http://www.deviantart.com/deviation/*

with the aforementioned clickable html links.

The reason for this is that I would like to be able to view the images on a given deviantart page WITHOUT having to load up successive pages. I just want to be able to click on a link that will load the image...and only the image! Smile!

Thanks for your help. Smile! As you can see, I have tried to create a filter on my own, but have only had limited success (i.e. only one or two of the target links is replaced with the appropriate clickable html link). :P


- Kye-U - Apr. 11, 2006 09:51 PM

Code:
[Patterns]
Name = "DeviantArt"
Active = TRUE
URL = "[^/]++deviantart.com"
Limit = 512
Match = "<a href="http://www.deviantart.com/view/[0-9]+/"><img src=$AV(http://tn([0-9])\0-([0-9])\1.deviantart.com/\2300W/\3) width=$AV(\4) height=$AV(\5) />[/url]$SET(\9=<a href="http://\2\3"><img src="http://tn\0-\1.deviantart.com/\2300W/\3" width="\4" height="\5" />[/url])"
        "|<a href="http://www.deviantart.com/deviation/[0-9]+/" title=$AV(\8)><img src=$AV(http://tn([0-9])\0-([0-9])\1.deviantart.com/\2/[0-9]+/\3) width=$AV(\4) height=$AV(\5) />[/url]$SET(\9=<a href="http://\2.deviantart.com/\3" title="\8"><img src="http://tn\0-\1.deviantart.com/\2300W/\3" width="\4" height="\5" />[/url])"
        "|<a href="http://www.deviantart.com/deviation/[0-9]+/"><span class="shadow"><img src=$AV(http://tn([0-9])\0-([0-9])\1.deviantart.com/\2300W/\3) width=$AV(\4) height=$AV(\5) /></span>[/url]$SET(\9=<a href="http://ic1.deviantart.com/\2\3"><span class="shadow"><img src="http://tn\0-\1.deviantart.com/\2300W/\3" width="\4" height="\5" /></span>[/url])"
        "|<a href="http://www.deviantart.com/deviation/[0-9]+/" thumb=$AV(http://tn([0-9])\0-([0-9])\1.deviantart.com/\2/[0-9]+/\3)>$SET(9=<a href="http://\2.deviantart.com/\3">)"
        "|<a href="\1" class="continue">Click here to continue to deviantART[/url]$SET(9=<meta http-equiv="refresh" content="0;url=\1">\k)"
Replace = "\9"

Also removes the "Click here to continue" pages.

Should change all thumbnails and text-only links to load full-image Wink