Greasy Fork is available in English.

게시판 » 제작 요청

Automatically close the tab by the specified link

§
작성: 2021-07-24

"watch?v=null"
------
How to make it so that when you click on the link: https://www.youtube.com/watch?v=null
the browser tab automatically closes?

What code is needed for this?
Thanks.

§
작성: 2021-07-24
수정: 2021-07-24

// ==UserScript==
// @name close links
// @namespace CloseLinks
// @version 0.1
// @description close link
// @author hacker09
// @match https://www.youtube.com/watch?v=null
// @grant window.close
// ==/UserScript==

window.top.close(); //Close the link

댓글 남기기

댓글을 남기려면 로그인하세요.