User:Naomieow/common.js

const DARKLINK = "https://syndication.twitter.com/srv/timeline-profile/screen-name/StardustLabs?dnt=false&embedId=twitter-widget-0&frame=false&lang=en&maxHeight=1080&origin=https%3A%2F%2Fstardustlabs.miraheze.org%2Fwiki%2FMain_page&sessionId=96b5c621a91384774ebc0cef5f3f13a9fecdc27e&showHeader=true&showReplies=false&theme=dark&widgetsVersion=31f0cdc1eaa0f%3A1660602114609" const LIGHTLINK = "https://syndication.twitter.com/srv/timeline-profile/screen-name/StardustLabs?dnt=false&embedId=twitter-widget-0&frame=false&lang=en&maxHeight=1080&origin=https%3A%2F%2Fstardustlabs.miraheze.org%2Fwiki%2FMain_page&sessionId=96b5c621a91384774ebc0cef5f3f13a9fecdc27e&showHeader=true&showReplies=false&theme=light&widgetsVersion=31f0cdc1eaa0f%3A1660602114609" $(".ext-darkmode-link").click(function{               if($(".client-darkmode").length>0){                    $("#twitter-widget-0").attr("src",LIGHTLINK)                }else{                    $("#twitter-widget-0").attr("src",DARKLINK)                }            })