[英]Can I manipulate a web page to avoid open a new tab, and display the content in the same tab?
I visit the webpage of my university a lot, but it open many tabs to reach the page I want to visit, so I end with 4 tabs open at the end, I was wandering, can I manupilate a web page to avoid open a new tab, and display the content in the same tab? 我经常访问我大学的网页,但是它打开了许多选项卡以访问我要访问的页面,所以最后我在最后打开了4个选项卡,我在徘徊,可以操纵一个网页以避免打开新页面吗?标签,然后在同一标签中显示内容?
Thanks! 谢谢!
The thing forcing links to open in new tabs/windows is the target attribute on the anchor tags. 强制链接在新选项卡/窗口中打开的事物是锚标记上的target属性。
If jQuery is loaded on the page you could remove them by typing this into the address bar 如果将jQuery加载到页面上,则可以通过在地址栏中键入此内容来将其删除
javascript:$('a[target="_blank"]').removeAttr('target');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.