On 1/5/2015 12:59 PM, 'Ben Stover' via greasemonkey-users wrote:
That's possibly because the width dimension is specified as a style value, and not a "width" attribute.


When I try to apply the following script statement:

// ==UserScript==
// @name            ChangeLayoutHowtogeek
// @namespace       nsChangeLayoutHowtogeek
// @description     Change Layout HowToGeek
// @include         http://*.howtogeek.com/*
// @version         1.2.0
// @grant           GM_addStyle
// @require         http://code.jquery.com/jquery-latest.js
// ==/UserScript==
...
try {
document.querySelector('img[width="650"]').setAttribute('style','width: 70%; 
height: 70%');
} catch ( ignored ) {  }

to the following page then the image size is NOT shrinked.

http://www.howtogeek.com/196315/6-ways-to-actually-use-1-tb-of-cloud-storage/

Why not?

There are lots of img's with width 650 inside

Ben




--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to