Skip to content

Commit

Permalink
Update v0.5.3 - fix verion button
Browse files Browse the repository at this point in the history
  • Loading branch information
isanchop committed Jul 20, 2023
1 parent 7f0871c commit 316a52a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
12 changes: 12 additions & 0 deletions img/text-logo-color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 13 additions & 10 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{
"manifest_version": 3,

"name": "StuHack",
"version": "0.5.2",
"version": "0.5.3",
"description": "Banner remover, filter pass & document downloader",
"icons": {
"icons": {
"16": "img/icon16.png",
"48": "img/icon48.png",
"128": "img/icon128.png" },

"content_scripts": [{
"js": ["version-check.js", "remove-banner.js", "remove-blur.js", "doc-viewer.js"],
"css": ["style.css"],
"matches": ["https://www.studocu.com/*", "https://www.studeersnel.nl/*"]
}]
"128": "img/icon128.png"
},

"content_scripts": [
{
"js": ["version-check.js", "remove-banner.js", "remove-blur.js", "doc-viewer.js"],
"css": ["style.css"],
"matches": ["https://www.studocu.com/*", "https://www.studeersnel.nl/*"]
}
]
}
2 changes: 1 addition & 1 deletion version-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ window.addEventListener('load', function(){
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><span class="tooltiptext-bottom">Check for newer releases</span>';
button_cv.onclick = function() {location.href="https://github.com/isanchop/stuhack/releases/" }

up_buttons[0].parentNode.parentNode.insertBefore(button_cv, up_buttons[0].parentNode.parentElement.children[3]);
up_buttons[0].parentNode.parentNode.parentNode.insertBefore(button_cv, up_buttons[0].parentNode.parentNode.parentElement.children[2]);

const logos = document.querySelectorAll('[aria-label="Studocu Logo"]');

Expand Down

0 comments on commit 316a52a

Please sign in to comment.