*** Multi-Browser OcUK Shopping Cart Bookmarklet (similar to the Chrome extension) ***

  • Thread starter Thread starter Pho
  • Start date Start date
Sorry, programming isnt anything I do,

You want me to do add +? to something?

Sorry it was intended for Pho with reference to his patch.

His patch strips out the url http://1.2.3.10/bmi/ and replaces it with http://

My idea was basically to cut off the start no matter what it is leaving only the ocuk bit.

edit for Pho:

Code:
.replace(/^.+?www.overclockers.co.uk/, 'http://www.overclockers.co.uk')

Think that might be it in javascript.

Edit 2:

I meant Pho. Ok, too tired for programming, bed :P
 
Last edited:
IE9,

YOUR BASKET
1 x Intel Core i7-3930K 3.20GHz (Sandybridge-E) Socket LGA2011 Processor - OEM[/url] £455.99
1 x HIS ATI Radeon HD 7950 3072MB GDDR5 PCI-Express Graphics Card[/url] £347.99
1 x Corsair PC Starter Bundle 2000c - 600TM Case / TX 850W V2 PSU / H80 CPU Cooler (Cooler Half Price)[/url] £284.98
1 x Crucial RealSSD M4 128GB 2.5" SATA 6Gb/s Solid State Hard Drive (CT128M4SSD2)[/url] £149.99
1 x Kingston HyperX Genesis 8GB (4x2GB) DDR3 PC3-12800C9 1600MHz Dual/Quad Channel Kit (KHX1600C9D3K4/8GX)[/url] £37.99
Total : £1,291.93 (includes shipping : £12.50).
[/url] [/url] [/url] [/url] [/url]
 
edit: whole load of forum activity whilst I was replying to post #37

Heh completely missed that. Looks like T-Mobile use various servers to route images through. I've changed it again so have another go (the Opera one works fine, I think my browser was playing up and not loading the other images btw).

Here's the RegEx I went for. RegEx scares me :D.

PHP:
'image' : rowItems.eq(0).find('img:first').prop('src').replace(/http:\/\/\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}\/bmi\//, "http://"),
 
Last edited:
IE

YOUR BASKET
1 x Intel Core i7-3930K 3.20GHz (Sandybridge-E) Socket LGA2011 Processor - OEM[/url] £455.99
1 x HIS ATI Radeon HD 7950 3072MB GDDR5 PCI-Express Graphics Card[/url] £347.99
1 x Corsair PC Starter Bundle 2000c - 600TM Case / TX 850W V2 PSU / H80 CPU Cooler (Cooler Half Price)[/url] £284.98
1 x Crucial RealSSD M4 128GB 2.5" SATA 6Gb/s Solid State Hard Drive (CT128M4SSD2)[/url] £149.99
1 x Kingston HyperX Genesis 8GB (4x2GB) DDR3 PC3-12800C9 1600MHz Dual/Quad Channel Kit (KHX1600C9D3K4/8GX)[/url] £37.99
Total : £1,291.93 (includes shipping : £12.50).
[/url] [/url] [/url] [/url] [/url]
 
IE9

YOUR BASKET
1 x Intel Core i7-3930K 3.20GHz (Sandybridge-E) Socket LGA2011 Processor - OEM[/url] £455.99
1 x HIS ATI Radeon HD 7950 3072MB GDDR5 PCI-Express Graphics Card[/url] £347.99
1 x Corsair PC Starter Bundle 2000c - 600TM Case / TX 850W V2 PSU / H80 CPU Cooler (Cooler Half Price)[/url] £284.98
1 x Crucial RealSSD M4 128GB 2.5" SATA 6Gb/s Solid State Hard Drive (CT128M4SSD2)[/url] £149.99
1 x Kingston HyperX Genesis 8GB (4x2GB) DDR3 PC3-12800C9 1600MHz Dual/Quad Channel Kit (KHX1600C9D3K4/8GX)[/url] £37.99
Total : £1,291.93 (includes shipping : £12.50).
[/url] [/url] [/url] [/url] [/url]
 
I would be interested to see the BB code it produces. Looks like the data conversion is all mangled up.

There are two conversions happening. http table -> BB code -> http links. Looking at the page source, it's all pretty messed up :)
 
IE9,

Untitled-1.png
 
Back
Top Bottom