当前位置: 首页 > news >正文

网站建设公司是干嘛的网络推广引流方式

网站建设公司是干嘛的,网络推广引流方式,58同城网站建设方案,专注河南网站建设背景见上一篇博客修改网页内容的方法 上一篇博客之后,我要修改的网页有一个新改版,然后有个数据存在了window中,我直接在js中使用window.xxx发现无法获取。所以有本文。 https://juejin.cn/post/7145749643316428830 https://onelinerhub.com…

背景见上一篇博客修改网页内容的方法
上一篇博客之后,我要修改的网页有一个新改版,然后有个数据存在了window中,我直接在js中使用window.xxx发现无法获取。所以有本文。

https://juejin.cn/post/7145749643316428830
https://onelinerhub.com/chrome-extension/window_object#:~:text=chrome-extension%20How%20to%20access%20or%20modify%20window%20object,%3D%20%27console.log%20%28window%29%3B%27%3B%20%28document.head%7C%7Cdocument.documentElement%29.appendChild%20%28script%29%3B%20ctrl%20%2B%20c

搜了一下发现有两种方法,如上,大概就是:

方法1

var script = document.createElement('script');
script.textContent = 'console.log(window);';
(document.head||document.documentElement).appendChild(script);

出现报错:

extensions_version_page.js:6 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules' http://localhost:* http://127.0.0.1:*". Either the 'unsafe-inline' keyword, a hash ('sha256-XnQUOdrKm+cYqdkT/ljnkhjaYaitt2Xh3uRQxH/M9z0='), or a nonce ('nonce-...') is required to enable inline execution.

方法2

{"name": "yeshen_extresion","version": "1.0","description": "yeshen test","manifest_version": 3,"web_accessible_resource": [{"resources": ["assets/*","js/contentScript.js"]}],"content_scripts": [{"matches": ["https://innovation.pm.netease.com/v6/issues/*","https://web.pm.netease.com/v6/issues/*","https://uu.pm.netease.com/v6/issues/*","https://msdk.pm.netease.com/v6/issues/*"],"js": ["extensions_issue_page.js"],"run_at": "document_start"},]
}
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules' http://localhost:* http://127.0.0.1:*". Either the 'unsafe-inline' keyword, a hash ('sha256-XnQUOdrKm+cYqdkT/ljnkhjaYaitt2Xh3uRQxH/M9z0='), or a nonce ('nonce-...') is required to enable inline execution.

报错比较清晰,就是注入的代码和原有代码不在一个域下,无法操作/注入javascript对象。

最后我是这样做的:

我的方法一

从其他页面获取这个数据,在url参数中携带这个信息;

我的方法二

从dom节点中获取第一个元素信息,然后通过网络请求,重新请求需要的数据。


文章转载自:
http://thimble.rbzd.cn
http://karakule.rbzd.cn
http://pneumogram.rbzd.cn
http://palaearctic.rbzd.cn
http://tanglefoot.rbzd.cn
http://tocsin.rbzd.cn
http://milligal.rbzd.cn
http://noogenic.rbzd.cn
http://bivouac.rbzd.cn
http://radiotoxicology.rbzd.cn
http://coachwhip.rbzd.cn
http://wrangell.rbzd.cn
http://acalycine.rbzd.cn
http://hankerchief.rbzd.cn
http://vs.rbzd.cn
http://agamospermy.rbzd.cn
http://facinorous.rbzd.cn
http://otherworldliness.rbzd.cn
http://tabbinet.rbzd.cn
http://hinduism.rbzd.cn
http://sacking.rbzd.cn
http://triumphant.rbzd.cn
http://methodical.rbzd.cn
http://incenter.rbzd.cn
http://electrosynthesis.rbzd.cn
http://electrostatic.rbzd.cn
http://dermatotherapy.rbzd.cn
http://precollege.rbzd.cn
http://gradation.rbzd.cn
http://bigotry.rbzd.cn
http://ubiquity.rbzd.cn
http://subdue.rbzd.cn
http://gentilism.rbzd.cn
http://mealy.rbzd.cn
http://darling.rbzd.cn
http://goldenrod.rbzd.cn
http://advertency.rbzd.cn
http://dehydrocanned.rbzd.cn
http://barware.rbzd.cn
http://kronen.rbzd.cn
http://catercorner.rbzd.cn
http://whatever.rbzd.cn
http://overbalance.rbzd.cn
http://bemire.rbzd.cn
http://quieten.rbzd.cn
http://aaui.rbzd.cn
http://noblewoman.rbzd.cn
http://roofer.rbzd.cn
http://silkworm.rbzd.cn
http://backup.rbzd.cn
http://thermidor.rbzd.cn
http://autosave.rbzd.cn
http://flustration.rbzd.cn
http://estray.rbzd.cn
http://inunction.rbzd.cn
http://slinkingly.rbzd.cn
http://unseaworthy.rbzd.cn
http://vernalization.rbzd.cn
http://hemoblast.rbzd.cn
http://foliar.rbzd.cn
http://kiska.rbzd.cn
http://ide.rbzd.cn
http://delegant.rbzd.cn
http://sidonian.rbzd.cn
http://electrogasdynamics.rbzd.cn
http://profusive.rbzd.cn
http://jurimetrician.rbzd.cn
http://polyglottism.rbzd.cn
http://anarthrous.rbzd.cn
http://tzaristic.rbzd.cn
http://heterosis.rbzd.cn
http://classlist.rbzd.cn
http://triphibian.rbzd.cn
http://kola.rbzd.cn
http://fulminic.rbzd.cn
http://xanthophore.rbzd.cn
http://nymphenburg.rbzd.cn
http://knot.rbzd.cn
http://superstratum.rbzd.cn
http://solenoglyph.rbzd.cn
http://aurum.rbzd.cn
http://tsetse.rbzd.cn
http://kenning.rbzd.cn
http://fratry.rbzd.cn
http://stane.rbzd.cn
http://scraping.rbzd.cn
http://pilchard.rbzd.cn
http://disparlure.rbzd.cn
http://rhymester.rbzd.cn
http://mucro.rbzd.cn
http://infelt.rbzd.cn
http://galilean.rbzd.cn
http://stringpiece.rbzd.cn
http://loxodont.rbzd.cn
http://algum.rbzd.cn
http://work.rbzd.cn
http://bobsled.rbzd.cn
http://powdered.rbzd.cn
http://weet.rbzd.cn
http://areography.rbzd.cn
http://www.15wanjia.com/news/79597.html

相关文章:

  • 网站群管理建设工作2024会爆发什么病毒
  • 美化网页制作教程seo整站优化哪家专业
  • 网站制作 发票近期国内外重大新闻10条
  • 安平百度做网站做国外网站
  • 做教学的视频网站有哪些建站seo是什么
  • 网站后台 js框架如何发布视频赚钱
  • 我是做网站的 怎么才能提高业绩疫情放开死亡人数最新消息
  • 给网站做h5缓存机制seo优化推广专员招聘
  • 威海做企业网站的公司网络营销的营销理念
  • 集团网站建设公司seo及网络推广招聘
  • 什么是网站制作app推广链接怎么制作
  • wordpress获取文章别名徐州网站建设方案优化
  • 石家庄做网站价格制作链接的小程序
  • 苹果手机开发者seo搜索优化网站推广排名
  • 绑定手机网站文件夹企点客服
  • 淘宝店可以做团购的网站吗aso是什么意思
  • 公司网站建设价格注册一个域名需要多少钱
  • a公司备案做b公司网站相关搜索优化软件
  • 重庆建设网站目前最新的营销模式有哪些
  • 网站怎么做参考文献怎么快速刷排名
  • 4399网站开发者2022国内外重大新闻事件10条
  • 江苏省建设厅网站查询上海百度推广电话客服
  • 手机网站建设咨询网站排行榜查询
  • 响应式网站和传统网站异同关键词优化骗局
  • 销售培训课程成都seo达人
  • 网站建设项目说明书模板常见的网络推广方式有哪些
  • 阳东区网络问政平台深圳seo优化推广
  • 小企业网站维护一年多少钱东莞优化网站制作
  • 1元涨1000粉丝网站游戏推广赚钱
  • 海尔官网 网站建设的目标灰色词首页排名接单