简体   繁体   English

我是否可以操纵网页以避免打开新标签,并在同一标签中显示内容?

[英]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.

相关问题 如何保持同一页面并自动打开新标签页 - How can I stay on same page and open a new tab automatically 在单独的选项卡中显示 chrome 扩展,打开一个新选项卡,抓取页面内容并将其显示在扩展页面上 - Display chrome extension in separate tab, open a new tab, scrape page content and display it on the extension page 如何在同一选项卡和页面中打开新内容/代码 - How to Open New Content/Code in the Same Tab and Page window.open(url)在同一选项卡中未打开新网页 - window.open(url) not opening new web page in the same tab 如何通过单击一个按钮在同一选项卡上打开一个新网页? - how to open a new web page on the same tab by clicking a button? 在新标签页中打开同一页面,但在当前标签页中打开新链接 - Open same page in new tab but new link if in current tab 新标签页中的javascript打开页面以及该标签页上的新链接 - javascript open page in new tab and new links on that same tab 打开新页面/标签并添加内容 - Open new page/tab and add content 我可以打开未选择默认选项卡的新窗口(网页)吗? - Can I open a new window(web page) who not default tab selected 打开新的Web浏览器选项卡,然后重复使用相同的选项卡 - Open new web browser tab, and reuse the same tab
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM