제목이 적합한 지 아닌지 (미안) 모르겠습니다. 먼저 자바 스크립트에서 초보자라고 말해야합니다.와일드 카드로 URL을 변경하십시오.
URL을 변경하고 클릭시 리디렉션하는 javascirpt를 만들고 싶습니다 (boookmark bar에서 생성).
https://mail.google.com/mail/u/0/h/bv293r3qycgk/?&th=16032287bb796882&v=c&s=a
에 예 변경에 대한
https://mail.google.com/mail/u/0/h/[12_random_aphanumeric]/?&th=[16_random_aphanumeric]&v=c&s=a
에
https://mail.google.com/mail/u/0/#all/[16_random_aphanumeric]
: 아이디어는 URL을 변경하는 것입니다 https://mail.google.com/mail/u/0/#all/16032287bb796882
그래서처럼 "window.location.assign"사용
javascript: window.location.assign(window.location.toString().replace('*?&th=', 'https://mail.google.com/mail/u/0/#all/')); window.location.assign(window.location.toString().replace('&v=c&s=a', ' '));
물론 그 작동하지 않습니다.
[*] 와일드 카드를 사용하는 방법을 모르겠습니다.
의견을 보내 주시면 감사하겠습니다.