首页 开发者工具 Script Executor

Script Executor

用户数 : 8000 分类 : 开发者工具 扩展大小 : 282KiB 最后更新时间 : 2014-07-13 版本 : 3.0
                            The extension helps run java script on the page. The good point is that the extension is powered by jQuery version 1.10 which helps in debugging any html page you have currently opened up in the browser.

For using Jquery use $ext instead of $ to run your scripts.

For example if I want to find number of anchor tags on the page: I would write $ext('a').size() in the text area to get the number in result section below the execute button. Similarly try using window.location.href to get the current url in result section.

You can write multiple lines of script and execute to see the logs in console as do not use alerts in the script. To see logs in the console. Press F12 to open the chrome developer tool and then click on the console tab. 

Logging in Script Area example:
try writing console.log('Your message') and click Execute button or alternative you can use the log method directly like log('My Message').

Try executing this script on any page.
$ext('a').each(function(){
  log($ext(this).text())
});

This will result in printing every link text on the page in console.

Use It and play around with the html in your browser. 
Happy Scripting !!!!
                        
查看更多
下载 如何离线安装? Chrome store

分享

全部评论

    展开更多评论

    错误提示保存失败
    成功提示保存成功
    close
    qr-code

    为打击盗链困扰,本站已启用公众号验证
    微信扫码关注上方公众号,回复“插件”二字获得验证码,验证码5分钟内全站有效。

    正在验证
    验证成功
    下载遇到问题?请添加QQ群:194738324
    close
    qr-code

    为打击盗链困扰,本站已启用公众号验证
    微信扫码关注上方公众号,回复“脚本”二字获得验证码,验证码5分钟内全站有效。

    正在验证
    验证成功