0 Followers
0 Following
20 Posts

This tankie thinks they know more about my country's history than I do

https://sh.itjust.works/post/6523108

This tankie thinks they know more about my country's history than I do - sh.itjust.works

/c/[email protected] mod denying "Tiananmen square" massacre.

https://sh.itjust.works/post/5851706

/c/[email protected] mod denying "Tiananmen square" massacre. - sh.itjust.works

I wrote hacky tampermonkey script to fix Lemmy instance links. Any advice?

https://sh.itjust.works/post/5563197

I wrote hacky tampermonkey script to fix Lemmy instance links. Any advice? - sh.itjust.works

Read this post [https://sh.itjust.works/post/5556588] and wrote a simple Tampermonkey script as a solution. // ==UserScript== // @name Fix community link // @version 0.1 // @description try to take over the world! // @match https://sh.itjust.works/post/* // ==/UserScript== (function() { 'use strict'; const postLinks = document.getElementById("postContent").querySelectorAll("a:not(.community-link)") // get every links that is NOT a community link const fixLink = (aTags) => { for (let aTag of aTags) { const isCommunityLink = aTag.pathname.startsWith("/c/"); aTag.href = isCommunityLink?aTag.pathname + "@" + aTag.host:aTag.href }; } fixLink(postLinks) const comments = document.getElementsByClassName("comment-content"); for (let comment of comments) { let commentLinks = comment.querySelectorAll("a:not(.community-link)"); fixLink(commentLinks) } })(); Any advice? I especially hate the fact that the way to check if it’s a link for lemmy community is through pathname but I thought there’s can’t be a real solution besides listing all the lemmy instances or actually making a request somehow. Any inputs are welcome!

For those of you who might be interested: it’s from dbrand.com
The audacity - sh.itjust.works

What are your thoughts on Skeleton(Svelte)?

https://sh.itjust.works/post/3935789

What are your thoughts on Skeleton(Svelte)? - sh.itjust.works

I just saw their recent update and it’s quite impressive. Not the biggest fan of Tailwind but it definitely seems to make svelte development faster and less painful (not that it’s any more painful than it should be).