Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

ENTERPRISE LINKED IMAGES BOOKMARKLET V2

Name: Anonymous 2009-12-16 0:52

javascript:(function(){function I(u){var t=u.split('.'),e=t[t.length-1].toLowerCase();return {gif:1,jpg:1,jpeg:1,png:1,mng:1}[e]}function hE(s){return s.replace(/&/g,'&amp;').replace(/>/g,'&gt;').replace(/</g,'&lt;').replace(/"/g,'&quot;');}function U(a){var r=[];o:for(var i=0,n=a.length;i<n;i++){for(var x=0,y=r.length;x<y;x++){if(r[x][0]==a[i][0])continue o;}r[r.length]=a[i];}return r;}var q,h,i,z=open().document;var a=[];z.write('<style type="text/css">img{max-width:100%}</style>'/*+'<p>Images linked to by '+hE(location.href)+':</p><hr>'*/);for(i=0;q=document.links[i];++i){h=q.href;if(h&&I(h))a.push([hE(h),q.innerHTML]);}a=U(a);for(i=0;q=a[i];++i){z.write('<p>'/*+q[1] --dangerous innerhtml-- +' ('+q[0]+')<br>'*/+'<img src="'+q[0]+'">');}z.close();})()

Derived from https://www.squarefree.com/bookmarklets/ - optimal for imageboards, shows all images in a rather comfortable fashion (no duplicates, big images are clamped to viewport width). There's some optional code commented out, default configuration is mostly minimal. Should work in all modern browsers.

Name: Anonymous 2009-12-16 2:34

I don't like you.

Name: Joel Spolsky 2009-12-16 2:46

I should write an article about line noise programmers.

Name: Anonymous 2009-12-16 3:03

>>3
This might surprise you, but most browsers don't like line breaks in the middle of bookmark URLs.

If it bothers you that much, you can use an automatic prettyfier to take a more comfortable look at it.

Name: Anonymous 2009-12-16 4:47

>>1
Cheers for this.

Name: Anonymous 2009-12-16 7:16

s.replace().replace().replace().replace().replace().replace()

Name: Anonymous 2009-12-16 7:29

>>6
REPLACE MY ANUS

Name: Anonymous 2009-12-16 8:05

s.replace(/scientists/gi,"artists")

Name: Anonymous 2009-12-17 6:38

>>8
llol

Name: Anonymous 2009-12-17 10:22

>>6
Please suggest a shorter, more efficient alternative. The code must be legible (well, as legible as it's now - just don't make matters worse) and it must be into the public domain.

BTW this code (the .replace().replace().replace() one) was originally written by no other than Jesse Ruderman, so you're up against a master here.

Name: Anonymous 2009-12-17 13:28

.replace(/[<>\&\"]/g, function() { return '&#' + c.charCodeAt(0) + ';';

Name: Anonymous 2009-12-17 13:29

>>11
.replace(/[<>\&\"]/g, function(c) { return '&#' + c.charCodeAt(0) + ';';

Name: Anonymous 2009-12-17 13:38

.replace(/[<>\&\"]/g,function(c){return '&#'+c.charCodeAt(0)+';'});
[b][u][o]WOW I'M GAY[\b][\u][\o]

Name: Anonymous 2009-12-17 13:51

>>13
HOMOSEXUALS CAN'T BBCODE

Name: Anonymous 2009-12-17 14:01

>>11-13
FUNCTIONAL PROGRAMMING

Name: Anonymous 2009-12-17 14:35

>>13

makes html output less legible (numbers instead of entity names)

slower, 2x-3x more string concatenations

and i have a feeling nanojit engines will choke on it causing even more slowdown

patch rejected

Name: Anonymous 2009-12-17 14:42

We need conditionals in regexen.
s/[<>&]/\1\='<'?'&lt;' etc...

Name: Anonymous 2009-12-17 15:14

>>17
s/pat/expr/e

Name: Anonymous 2009-12-17 15:38

>>18
There's no pat in my post you idiot

Name: Anonymous 2009-12-17 16:14

>>15
FICTONAL PROGRAMMING

Name: Anonymous 2009-12-17 16:32

>>16
.replace(/[<>\&\"]/g,function(c){return ['&#',c.charCodeAt(0),';'].join('')});

.replace(/[<>\&\"]/g,function(c){return ['&#x',escape('&').substr(1),';'].join('')});

Name: Anonymous 2009-12-17 17:01

>>21
Stop it already, my eyes are bleeding left and right.

Name: Anonymous 2009-12-17 17:35

>>13
[b][u][o]
I think I recognize those letters...

Name: Anonymous 2009-12-17 17:38

>>22
GET BACK TO UR ENTERPRISE C#

Name: Anonymous 2009-12-17 21:14

>>24
Well, C# makes my anus bleed left and right.

Name: Anonymous 2009-12-17 22:03

>>19
That was a reply to your post, not a correction.

Name: Anonymous 2009-12-18 10:12

>>26
YHBT ( ≖‿≖)

Name: Anonymous 2009-12-18 10:52

>>27
YHBT ( ≖‿≖)

Name: Anonymous 2010-01-30 12:25

javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var%20e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=auto|en&tbb=1&ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=auto|en&tbb=1&ie='+e;};

Name: wedding 2010-06-07 1:04


It’s so much easier to  find the perfect <a href="http://www.eastbridal.com/">wedding dresses</a><a href="http://weddings.lovetoknow.com/wiki/Bridal_Party_Dresses" title="Bridal Party Dresses"></a> dress  today than it was 20 or 40 years ago. <a href="http://www.eastbridal.com/">wedding dress</a> are the days of puffy shoulder pads  and<a href="http://www.eastbridal.com/">discount wedding dresses</a>, today’s bridesmaids’ dresses are sleek and streamlined, many  of <a href="http://www.eastbridal.com/designer-wedding-dress/beach-wedding-dresses.html">beach wedding dresses</a> can be worn again. <a href="http://www.eastbridal.com/designer-wedding-dress/simple-wedding-dress.html">Simple wedding dress</a> have also evolved, saying goodbye to gaudy  shades in favor of a huge color spectrum ranging from elegant<a href="http://www.eastbridal.com/designer-wedding-dress/modest-wedding-dress.html"> Modest wedding dress</a> to  sophisticated fun pinks and fresh<a href="http://www.eastbridal.com/designer-wedding-dress/elegant-wedding-dress.html">Elegant wedding dress</a>.Generally the<a href="http://www.eastbridal.com/designer-wedding-dress/elegant-wedding-dress.html">Elegant wedding dress</a>chooses  the type of dress her bridesmaids will wear.<a href="http://www.eastbridal.com/designer-wedding-dress/elegant-wedding-dress.html">Elegant wedding dress</a> is often a bone of contention  for the bridesmaids as many times the <a href="http://www.eastbridal.com/designer-wedding-dress/chinese-wedding-dress.html">Chinese wedding dress </a> chooses a style or color that isn’t  flattering for all of the women in the <a href="http://www.eastbridal.com/designer-wedding-dress/western-wedding-dress.html">Western wedding dress</a> party. While it’s true, you  can’t please everyone, the <a href="http://www.eastbridal.com/designer-wedding-dress/formal-wedding-dress.html">Formal wedding dress</a> can spare a lot of bad feelings by allowing  the women in the<a href="http://www.eastbridal.com/designer-wedding-dress/informal-wedding-dress.html">Informal wedding dress</a> party to have some input into the selection process. Perhaps  all of the women involved can have<a href="http://www.eastbridal.com/wedding-dress-style.html">Wedding dress style</a> of shopping together to find  a style and <a href="http://www.eastbridal.com/wedding-dress-style/short-wedding-dress.html">Short wedding dress</a> flattering to every shape and skin tone. Try to find styles  without too many <a href="http://www.eastbridal.com/wedding-dress-style/tea-length-wedding-dress.html">Tea length wedding dress</a> or embellishments as these types of dresses can’t be  cut down or worn again for other <a href="http://www.eastbridal.com/wedding-dress-style/tea-length-wedding-dress.html">Tea length wedding dress </a> occasions.If you want to find a <a href="http://www.eastbridal.com/wedding-dress-style/strapless-wedding-dress.html">Strapless wedding dress</a> flattering to  everyone, avoid the <a href="http://www.eastbridal.com/wedding-dress-style/straps-wedding-dress.html">Straps wedding dress</a>: Puffy shoulder pads: Big <a href="http://www.eastbridal.com/wedding-dress-style/short-sleeves-wedding-dress.html">Short wedding dress sleeves</a> flatter very  few women. Petite women seem lost in the <a href="http://www.eastbridal.com/wedding-dress-style/mermaid-wedding-dress.html">Mermaid wedding dress </a> and larger framed women  look like <a href="http://www.eastbridal.com/wedding-dress-style/column-wedding-dress.html">Column wedding dress </a>. If you’d like all your <a href="http://www.eastbridal.com/wedding-dress-style/plus-size-wedding-dresses.html">Plus Size wedding dresses </a> to look lovely, avoid  the use of heavily padded <a href="http://www.eastbridal.com/wedding-dress-colors.html">Wedding dress colors</a>. Large “butt” bows: You have to have a  small <a href="http://www.eastbridal.com/wedding-dress-colors/white-wedding-dress.html">White wedding dress</a> to rock the butt bow. Since <a href="http://www.eastdress.com/">Prom Dresses</a> is an area most women don’t  wish to call <a href="http://www.eastdress.com/">Cheap Prom Dress</a> to, try not to choose <a href="http://www.eastdress.com/">Prom Dresses 2010</a> with large butt bows. Pale  Colors: Pale <a href="http://www.eastdress.com/">Prom Dress</a> and <a href="http://www.eastdress.com/prom-dresses-2010_c360">Prom Dresses 2010</a> might look good on the <a href="http://www.eastdress.com/cheap-prom-dresses_c358">Cheap Prom Dresses</a>, but <a href="http://www.eastdress.com/plus-size-prom-dresses_c351">Plus Size Prom Dresses</a> don’t  work for all skin types. Women with very light <a href="http://www.eastdress.com/short-prom-dresses_c352">Short Prom Dresses</a> will look washed out,  especially in <a href="http://www.eastdress.com/short-prom-dresses_c352">Short Prom Dresses</a>.What will you do with  your <a href="http://www.eastdress.com/vintage-prom-dresses_c353">Vintage Prom Dresses</a> after the wedding? If it’s a formal <a href="http://www.eastdress.com/sexy-prom-dresses_c354">Sexy Prom Dresses</a> and you would like  to keep in its pristine <a href="http://www.eastdress.com/simple-prom-dresses_c356">Simple Prom Dresses</a> to wear to another formal <a href="http://www.eastdress.com/designer-prom-dresses_c357">Designer Prom Dresses</a> in the future,  consider bringing it to a <a href="http://www.eastdress.com/quinceanera-dresses_c359">Quinceanera Dresses</a> preservation specialist.

Name: Anonymous 2011-01-31 20:37

<-- check em dubz

Name: Anonymous 2011-02-04 11:30


Don't change these.
Name: Email:
Entire Thread Thread List