Updated bookmarklet
This commit is contained in:
parent
49f113e40c
commit
c6ce4a06d5
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue