从URL栏中删除Javascript? [英] Javascript stripped from URL bar?

查看:170
本文介绍了从URL栏中删除Javascript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,最近的Facebook网络钓鱼丑闻,谷歌浏览器(我假设其他浏览器)禁用了将javascript直接粘贴到您的网址栏的功能。好吧它仍然可以让你,但它剥离了javascript:部分。

So with the most recent facebook phishing scandal, google chrome(and i assume other browsers) disabled the ability to paste javascript directly into your URL bar. Well it still lets you, but it strips the "javascript: " part.

有没有人想出办法?我被卡住了:(

Has anyone figured out a work around? I'm stuck :(

添加细节:

Facebook网络钓鱼丑闻 - 这是人们复制/意大利面的时候javascript代码进入他们的网址,并邀请所有朋友参加活动或在每个朋友的墙上发布恶意内容。

Facebook Phishing Scandal - It's when people where copy/pasta that javascript code into their URL and it'd invite all their friends to an event OR post something malicious on every friend's wall.

我正在努力找到一个解决方法能够直接将javascript粘贴到URL中 - 自己测试一下

I'm trying to find a work around to be able to directly paste javascript into the URL - test it our for yourself

javascript: alert('Hello World')

立即(至少对我来说)剥离代码的javascript:部分。仅限于Google Chrome

instantly (for me at least) strips the "javascript:" part of the code. Only in google chrome

推荐答案

下一个最好的解决方法:复制时省略领先的 j 该代码片段并手动添加该字符:

Next best thing workaround: Leave out the leading j when copying the snippet and add only that character manually:


  1. avascript标记(带鼠标):...

  2. Ctrl + C

  3. Ctrl + L

  4. j

  5. CTR l + V

  6. 输入

  1. mark (w/ mouse) from avascript:…
  2. Ctrl+C
  3. Ctrl+L
  4. j
  5. Ctrl+V
  6. Enter

这篇关于从URL栏中删除Javascript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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