mirror of
https://github.com/techgaun/active-forks.git
synced 2025-01-03 11:22:17 +01:00
improved bookmarklet
This commit is contained in:
parent
53ac693d5a
commit
65f0aba0c6
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ Any time you're on a Github repo you can click the bookmarklet
|
||||||
and it'll bring up the Active Forks of that repo.
|
and it'll bring up the Active Forks of that repo.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
javascript:!function(){if(title=document.title,title)if(thing=title.split(/(GitHub\s-\s)*([^:]*)/)[2],thing){var t="https://techgaun.github.io/active-forks/index.html#"+thing;window.open(t)}else window.alert("Not%20a%20valid%20GitHub%20page")}();
|
javascript:(function(){if(window.location.hostname.match(/github.com+/)){var%20a=window.location.pathname.split('/',3);if(a.length==3){var%20b=encodeURIComponent(a[1]+'/'+a[2]);window.open('https://techgaun.github.io/active-forks/index.html#'+b,'_blank','noreferrer,noopener');return}}window.alert('Not%20a%20valid%20GitHub%20page')})();
|
||||||
```
|
```
|
||||||
|
|
||||||
![Screenshot](screenshot.png "Active Forks in Action")
|
![Screenshot](screenshot.png "Active Forks in Action")
|
||||||
|
|
Loading…
Reference in a new issue