-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update 0.4.0 - Added new functionality where you can check for newer …
…version if stuhack is not working
- Loading branch information
Showing
4 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,28 @@ | ||
.nofilter{ | ||
filter: none !important; | ||
} | ||
|
||
|
||
.download-button-1, .download-button-2, .github-button{ | ||
background: transparent; | ||
border-radius: 3px; | ||
color: #fff; | ||
display: inline-block; | ||
line-height: 1; | ||
margin: 0 5px; | ||
vertical-align: middle; | ||
} | ||
|
||
.download-button-1{ | ||
background: #5bc787; | ||
padding: 4px 15px; | ||
} | ||
|
||
.download-button-2{ | ||
height: 30px; | ||
min-width: 30px; | ||
} | ||
|
||
.github-button{ | ||
background: #333; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
window.addEventListener('load', function(){ | ||
version = chrome.runtime.getManifest().version; | ||
|
||
const prev_buttons = document.getElementsByClassName("fa-cloud-download-alt"); | ||
|
||
button_cv = document.createElement("button"); | ||
button_cv.classList.add("github-button"); | ||
|
||
button_cv.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 90 60" aria-labelledby="title" aria-describedby="desc" role="img" class="svg-inline--fa" xmlns:xlink="http://www.w3.org/1999/xlink"><path data-name="layer" d="M32 0a32.021 32.021 0 0 0-10.1 62.4c1.6.3 2.2-.7 2.2-1.5v-6c-8.9 1.9-10.8-3.8-10.8-3.8-1.5-3.7-3.6-4.7-3.6-4.7-2.9-2 .2-1.9.2-1.9 3.2.2 4.9 3.3 4.9 3.3 2.9 4.9 7.5 3.5 9.3 2.7a6.93 6.93 0 0 1 2-4.3c-7.1-.8-14.6-3.6-14.6-15.8a12.27 12.27 0 0 1 3.3-8.6 11.965 11.965 0 0 1 .3-8.5s2.7-.9 8.8 3.3a30.873 30.873 0 0 1 8-1.1 30.292 30.292 0 0 1 8 1.1c6.1-4.1 8.8-3.3 8.8-3.3a11.965 11.965 0 0 1 .3 8.5 12.1 12.1 0 0 1 3.3 8.6c0 12.3-7.5 15-14.6 15.8a7.746 7.746 0 0 1 2.2 5.9v8.8c0 .9.6 1.8 2.2 1.5A32.021 32.021 0 0 0 32 0z" fill="#fff"></path></svg><span>v.'+version+'</span>'; | ||
button_cv.onclick = function() {location.href="https://github.com/isanchop/stuhack/releases/" } | ||
|
||
prev_buttons[0].parentNode.parentNode.prepend(button_cv); | ||
|
||
}); |