How change the videos max of page with jQuery ?

Posted by Shady on Stack Overflow See other posts from Stack Overflow or by Shady
Published on 2010-05-26T17:44:27Z Indexed on 2010/05/26 18:01 UTC
Read the original article Hit count: 317

Filed under:
|
|

I have one website here that contains videos to see, like youtube, and the videos are divided in pages, and in the source of this page I got this part of the source:

<input type="hidden" value="12" id="vid_count">
<input type="hidden" value="422" id="vid_max">
<input type="hidden" value="12" id="vids_per_page">

The site contains 422 videos with 36 pages, 12 videos per page

I need to show all videos in only one page...

I've already tried

document.getElementById("vids_per_page").setAttribute("value", "500");

but this doesn't work...

How can I do it? (via greasemonkey)

any additional info?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery