Updated bookmarklet

This commit is contained in:
Henry Gabryjelski 2021-03-28 11:44:16 -07:00
parent 49f113e40c
commit c6ce4a06d5
1 changed files with 1 additions and 1 deletions

View File

@ -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.
```javascript
javascript:thing=document.URL.match(/github.com\/([A-z][\w\-]*\/[A-z][\w\-]*)/);if (thing){var newPage = 'https://techgaun.github.io/active-forks/index.html#'+thing[1];open(newPage%20,'targetname')%20}%20else%20{window.alert("Not%20a%20valid%20GitHub%20page");}
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")}();
```
![Screenshot](screenshot.png "Active Forks in Action")