GitHub one-click sync fork

Sync your GitHub fork repo within one click

< Opinie na GitHub one-click sync fork

Pytanie/komentarz

§
Napisano: 23-11-2020
Edytowano: 23-11-2020

@maple3142 Well, the problem is really simple. Github won't show $('.user-profile-link>strong') unless you click the View profile and more button, so it will say something like TypeError: Cannot read property 'textContent' of null

The good news is, I've just discovered a way to get your login-name. const currentUser = $('meta[name="octolytics-actor-login"]').content will make it. That's all.

Odpowiedz

Zaloguj się, by odpowiedzieć.

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元