如何编辑chrome中加载的默认网页的源文件 [英] How do I edit source file of default web page loaded in chrome

查看:81
本文介绍了如何编辑chrome中加载的默认网页的源文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过javascript编辑chrome中加载的默认网页的源文件,

i有一个chrome扩展程序供javasript编辑,



如何编写脚本来控制源文件默认网页加载



我尝试过:



i已经尝试过,

document.getElementById('smsAlert')。value =editedvalue;

它只是元素pannel中的显示/ chnges但不起作用,

我需要的是源文件中的更改

how do i edit source file of default web page loaded in chrome by javascript,

i have a chrome extension for editing by javasript,

how do i script to control of source file default web page loaded

What I have tried:

i have tried,
document.getElementById('smsAlert').value="editedvalue";
it is shows/chnges in only elements pannel but not working,
my required is changes in source file

推荐答案

如果你的问题是真的如何编辑源代码答案是你不能。如果你的意思是如何在页面加载到浏览器后更新页面,那么你的代码应该可以工作。
If your question is genuinely how do you edit the source code the answer is that you can't. If you mean how do you update the page after it has loaded into the browser then the code you have should work.


这篇关于如何编辑chrome中加载的默认网页的源文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆