I'm sorry for the many codelines in there. I was pasting text but gmail
didn't show any result to me, except when I ran it through notepad(++).

On Sun, Apr 14, 2013 at 9:54 AM, ArmEagle <[email protected]> wrote:

> document.querySelector('img[title="DIE WELT"]').setAttribute('style', 'width: 
> 50%;')
> document.querySelector('img[title="DIE WELT"]').setAttribute('style', 
> 'max-width: 130px; max-height: 30px;')
>
> There are many options to do so, but the lines below work
>
> a) document.querySelector('img[title="DIE WELT"]').setAttribute('style',
> 'width: 50%;')
>
> b) document.querySelector('img[title="DIE WELT"]').setAttribute('style',
> 'max-width: 130px; max-height: 30px;')
>
> The 'header' doesn't reduce in height with that though (the line below the
> image and text on the right). If you want that too, then you can add this:
>
> document.querySelector('#header').setAttribute('style', 'height: 60px;')
>
> document.querySelector('#header').setAttribute('style', 'height: 60px;')
>
>
> document.querySelector('img[title="DIE WELT"]').setAttribute('style', 'width: 
> 50%;')
>
> document.querySelector('img[title="DIE WELT"]').setAttribute('style', 
> 'max-width: 130px; max-height: 30px;')
>
> document.querySelector('img[title="DIE WELT"]').setAttribute('style', 'width: 
> 50%;')
>
> document.querySelector('img[title="DIE WELT"]').setAttribute('style', 
> 'max-width: 130px; max-height: 30px;')
>
> document.querySelector('img[title="DIE WELT"]').setAttribute('style', 'width: 
> 50%;')
>
> document.querySelector('img[title="DIE WELT"]').setAttribute('style', 
> 'max-width: 130px; max-height: 30px;')
>
>
> On Sun, Apr 14, 2013 at 8:55 AM, Ben <[email protected]> wrote:
>
>> Lets start with a sample web page:
>>
>>
>> http://www.welt.de/politik/ausland/article115264737/Was-wirklich-hinter-Nordkoreas-Atomdrohung-steckt.html?config=print
>>
>> As you can see in the upper left corner there is a picture with the logo
>> "Die Welt" of the newspaper.
>>
>> How can I shrink this picture logo from greasemonkey script
>>
>> a) by 50%
>> b) to a dimension of 100x30 pixel
>>
>> ?
>>
>> Thank you
>> 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?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to