Greasy Fork is available in English.

讨论 » 创建请求

Java script parameters replace

§
发布于:2016-01-18
编辑于:2016-01-18

Java script parameters replace

Hello, I am trying to replace some code in javascript in this page http://www.mza.cz/indikacniskici/index.php#show:MOR139618260 but with no luck :-(

In index.php there is javascript with text AC_FL_RunContent and in it there are also this two parameters:

    'width', '100%',
    'height', '100%',

and I need to change it to:

    'width', '8000',
    'height', '8000',

I tried it using replace function, but its not working :-(

    document.body.innerHTML = document.body.innerHTML.replace('\'width\', \'100%\',', '\'width\', \'9999\',');
    document.body.innerHTML = document.body.innerHTML.replace('\'height\', \'100%\',', '\'width\', \'9999\',');

Thanks very much for help. VictorC

发布留言

登录以发布留言。