Skip to content

Commit

Permalink
Merge pull request #90 from toobeeh/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
toobeeh authored Oct 6, 2024
2 parents 1f3ea8e + 2aafa37 commit 64e96e9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
1 change: 1 addition & 0 deletions features/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,7 @@ bounceload {
grid-template-rows: 1fr 1fr;
width: calc(100% - 48px - 3px);
gap: 4px;
z-index: 1;
}

#game #game-players .player.typo .player-info .player-name {
Expand Down
9 changes: 6 additions & 3 deletions features/uiTweaks.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ const uiTweaks = {
canvasGame.parentElement.style.height = "";
canvasGame.parentElement.style.width = "";
//canvasGame.parentElement.style.boxShadow = "";
canvasGame.style.width = "100%";
canvasGame.style.width = "";
canvasGame.style.height = "";
canvasGame.style.top = "";
canvasGame.style.left = "";
document.removeEventListener("keydown", changeZoom);
Expand Down Expand Up @@ -131,8 +132,10 @@ const uiTweaks = {
//document.querySelector(".size-picker .slider").dispatchEvent(new MouseEvent("mousedown", { button: 0 }));
// get current height and set to parent
let bRect = canvasGame.getBoundingClientRect();
canvasGame.parentElement.style.height = /* bRect.height + */ "600px";
canvasGame.parentElement.style.width = /* bRect.width + */ "800px";
canvasGame.style.height = /* bRect.height + */ `calc(600px * ${zoom})`;
canvasGame.style.width = /* bRect.width + */ `calc(800px * ${zoom})`;
canvasGame.parentElement.style.height = /* bRect.height + */ `calc(600px * ${1})`;
canvasGame.parentElement.style.width = /* bRect.width + */ `calc(800px * ${1})`;
if (!QS(".zoomNote")) {
QS("#game-word .description").insertAdjacentHTML("beforeend", "<span class='zoomNote'> (ZOOM MODE ACTIVE)</span>");
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Skribbl Typo",
"description": "The most complete toolbox for skribbl.io with namefinder & Discord integration",
"version": "26.3.6",
"version": "26.3.7",
"author": "tobeh",
"icons": {
"256": "res/icon/256MaxFit.png",
Expand Down
14 changes: 9 additions & 5 deletions skribbltypo.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// @author tobeh#7437
// @description Userscript version of skribbltypo - the most advanced toolbox for skribbl.io
// @icon64 https://rawcdn.githack.com/toobeeh/skribbltypo/master/res/icon/128MaxFit.png
// @version 26.3.6.172813729
// @version 26.3.7.172815219
// @updateURL https://raw.githubusercontent.com/toobeeh/skribbltypo/master/skribbltypo.user.js
// @grant none
// @match https://skribbl.io/*
Expand All @@ -24,7 +24,7 @@ const chrome = {
return "https://rawcdn.githack.com/toobeeh/skribbltypo/master/" + url;
},
getManifest: () => {
return {version: "26.3.6 usrsc"};
return {version: "26.3.7 usrsc"};
},
onMessage: {
addListener: (callback) => {
Expand Down Expand Up @@ -4899,6 +4899,7 @@ bounceload {
grid-template-rows: 1fr 1fr;
width: calc(100% - 48px - 3px);
gap: 4px;
z-index: 1;
}

#game #game-players .player.typo .player-info .player-name {
Expand Down Expand Up @@ -6552,7 +6553,8 @@ const uiTweaks = {
canvasGame.parentElement.style.height = "";
canvasGame.parentElement.style.width = "";
//canvasGame.parentElement.style.boxShadow = "";
canvasGame.style.width = "100%";
canvasGame.style.width = "";
canvasGame.style.height = "";
canvasGame.style.top = "";
canvasGame.style.left = "";
document.removeEventListener("keydown", changeZoom);
Expand Down Expand Up @@ -6580,8 +6582,10 @@ const uiTweaks = {
//document.querySelector(".size-picker .slider").dispatchEvent(new MouseEvent("mousedown", { button: 0 }));
// get current height and set to parent
let bRect = canvasGame.getBoundingClientRect();
canvasGame.parentElement.style.height = /* bRect.height + */ "600px";
canvasGame.parentElement.style.width = /* bRect.width + */ "800px";
canvasGame.style.height = /* bRect.height + */ `calc(600px * ${zoom})`;
canvasGame.style.width = /* bRect.width + */ `calc(800px * ${zoom})`;
canvasGame.parentElement.style.height = /* bRect.height + */ `calc(600px * ${1})`;
canvasGame.parentElement.style.width = /* bRect.width + */ `calc(800px * ${1})`;
if (!QS(".zoomNote")) {
QS("#game-word .description").insertAdjacentHTML("beforeend", "<span class='zoomNote'> (ZOOM MODE ACTIVE)</span>");
}
Expand Down

0 comments on commit 64e96e9

Please sign in to comment.