Skip to content

Commit

Permalink
i hate you guys
Browse files Browse the repository at this point in the history
  • Loading branch information
Moosyu committed Nov 22, 2024
1 parent 1e1cb84 commit df483ef
Show file tree
Hide file tree
Showing 11 changed files with 211 additions and 203 deletions.
365 changes: 180 additions & 185 deletions src/_data/games.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/css/inspirations.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
a:link {
color: white;
}

a:visited {
color: white;
}

a:hover {
color: white;
}

a:active {
color: white;
}
Expand All @@ -23,7 +23,7 @@ a:active {
height: 12px;
background: #d6ecf3;
}

::-webkit-scrollbar-track {
background: -webkit-linear-gradient(top, #ffadad 12.5%,#ffd6a5 25%,#fdffb6 37.5%,#caffbf 50%,#9bf6ff 62.5%,#a0c4ff 75%,#bdb2ff 87.5%, #ffc6ff 95%);
border: 1px ridge #8f38ff;
Expand Down
2 changes: 1 addition & 1 deletion src/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ video {
.view-counter {
width: 80%;
}

.button-home {
width: 45%;
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/comment-widget-min.js

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions src/js/comment-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,17 @@ function createComment(data) {

function sanitizeInput(input) {
const allowedTags = input.replace(/<(?!img\b)[^>]*>/gi, "");
const trustedImagesOnly = allowedTags.replace(/<img\b[^>]*src=["'](?!\/assets\/emojis\/)[^"']*["'][^>]*>/gi, "");
const highlightMentions = trustedImagesOnly.replace(/^(@\w+)/, '<span class="highlight-mention">$1</span>');
const trustedImagesOnly = allowedTags.replace(
/<img\b([^>]*?)>/gi,
(attributes) => {
const srcMatch = attributes.match(/src=["'](\/assets\/emojis\/[^"']*)["']/i);
return srcMatch ? `<img src="${srcMatch[1]}">` : "";
}
);
const highlightMentions = trustedImagesOnly.replace(
/(^|\s)(@\w+)/g,
'$1<span class="highlight-mention">$2</span>'
);
return highlightMentions;
}

Expand Down
4 changes: 4 additions & 0 deletions src/pages/ramblings/2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ side_nav_img: "/assets/cancer.jpg"

## 21/11/24

wifi just went out, so sad.

## 21/11/24

i dont even use youtube music, how the fuck?

![](https://i.imgur.com/WDIO3T9.png)
Expand Down
4 changes: 2 additions & 2 deletions src/pages/reviews/comics.njk
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ pagination:
</th>
</tr>
<tr>
<th>type, name, score, image</th>
<th>comment</th>
<th>Type, Name, Score, Image</th>
<th>Comment</th>
</tr>
</thead>
<tbody>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/reviews/favourites.njk
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ pagination:
<table class="review_table">
<thead>
<tr>
<th>type, name</th>
<th>comment</th>
<th>Type, Name</th>
<th>Comment</th>
</tr>
</thead>
<tbody>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/reviews/games.njk
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pagination:
</a>
</th>
</tr>
<th>name, score</th>
<th>comment</th>
<th>Name, Score</th>
<th>Comment</th>
</tr>
</thead>
<tbody>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/reviews/music.njk
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ pagination:
</a>
</th>
</tr>
<th>artist, name, score, cover</th>
<th>comment</th>
<th>Artist, Name, Score, Cover</th>
<th>Comment</th>
</tr>
</thead>
<tbody>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/reviews/tv.njk
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pagination:
</th>
</tr>
<tr>
<th>type, name, score</th>
<th>comment</th>
<th>Type, Name, score</th>
<th>Comment</th>
</tr>
</thead>
<tbody>
Expand Down

0 comments on commit df483ef

Please sign in to comment.