Skip to content
  • Categories
  • Recent
  • Groups
  • Users
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Zephyr)
  • No Skin
Collapse
Brand Logo
VGMooseundefined

VGMoose

@VGMoose
Admin
About
Posts
704
Topics
86
Shares
0
Groups
17
Followers
168
Following
0
Medals

Posts

Recent Best Controversial

  • How the new countdown timer works
    VGMooseundefined VGMoose

    Thanks! We want to have the main landing page a bit more useful too besides Google/URL bars, kind of like mini-bookmarks like on Switchbru, but we've been slow at getting there

    Web Development

  • nothing to see here
    VGMooseundefined VGMoose

    I think this just happened as a result of burning down the registration queue, each confirmation sent an email to the approved user, and then maybe they visited to sign in. Did any of them post?

    General

  • How the new countdown timer works
    VGMooseundefined VGMoose

    Here is the code for the countdown timer that displays on this site on Switch consoles!

    It uses the localStorage property of the browser to store the start time and date when the page is first visited. This occurs right after the DNS connects, when using browseDNS. Then it calculates the difference between the current time and the start time, subtracts that from 20 minutes, then displays it.

    function startTimer() {
        // check if a start time has been previously noted
        if (window.localStorage.getItem('startTime') == null) {
            // Local storage isn't persisted between sessions, so if we don't have
            // a start time, we're likely in a new session. Set the start time to now.
            window.localStorage.setItem('startTime', new Date().getTime());
        }
        // grab that start time
        var startTime = window.localStorage.getItem('startTime');
    
        // and the current time
        var presentTime = new Date().getTime()
    
        // calculate the difference between the two, and that's how long our session has been
        var diff = presentTime - startTime;
    
        // 20 minutes is 1200000 milliseconds (20 * 60 * 1000)
        var maxSessionLength = 1200000;
    
        // subtract the time difference from the max session length to get the remaining time
        var timeRemaining = maxSessionLength - diff;
    
        // if the remaining time is negative, just set it to 0
        if (timeRemaining < 0) {
            timeRemaining = 0;
        }
    
        // convert the remaining time to minutes and seconds
        var minutes = Math.floor((timeRemaining % (1000 * 60 * 60)) / (1000 * 60));
        var seconds = Math.floor((timeRemaining % (1000 * 60)) / 1000);
    
        // update the display span with the remaining time, and pad the seconds with a 0 if needed
        document.getElementById("timer").innerHTML = minutes + ":" + (seconds < 10 ? '0' : '') + seconds;
    }
    
    // run the timer logic once, and then repeat every second (1000 ms)
    startTimer();
    setInterval(startTimer, 1000);
    

    This function runs every 1000ms (that's what setInterval does). When it hits 0, nothing actually happens, but after the browser does time out, the localStorage info is wiped, and the countdown will start fresh on the next launch.

    Since it uses the wall time, this will persist across other sites on the Internet upon returning to browsedns. However, this also means it will become inaccurate when sleeping the console, leaving, and returning, which does not tick down Nintendo's counter.

    Web Development

  • Switch Countdown Timer Added
    VGMooseundefined VGMoose

    Edit:

    As a reminder, it is Nintendo's own decision to make the browser close in 20 minutes. Our only options are to provide information about it, the petition, or contacting Nintendo customer support directly and requesting a fix.

    The timer on this page is for your own convenience, to track how long ago the browser session started.

    Original post:

    When visiting a landing page using the Switch via the DNS, there is now a "Time Left" box in the upper right:

    BrowseDNS and Switchbru DNS:
    Screenshot 2022-12-29 at 12.44.38 PM.png Screenshot 2022-12-31 at 1.08.49 PM.png
    This starts counting down from 20:00 minutes at the start of the session. When it hits 0:00 nothing will actually happen, but very likely you will be kicked out soon by the Browser Timeout.

    This timer will keep ticking even if you visit other pages on the Internet and return back to it. If you sleep your console, the timer will become inaccurate and likely show 0:00 earlier than it should.

    Announcements

  • non-sketchy midi sites
    VGMooseundefined VGMoose

    It's not anything modern, but http://vgmusic.com has a ton of midi's from different video games

    Music

  • The cycle known as society
    VGMooseundefined VGMoose

    I'd love for automation to come in and save everyone. How many of our jobs can machines just do instead? Give people more time to focus on their own endeavors! (Creative, family, a fulfilling job, etc).

    Stephen Hawking said this on robots/automation:

    “If machines produce everything we need, the outcome will depend on how things are distributed. Everyone can enjoy a life of luxurious leisure if the machine-produced wealth is shared, or most people can end up miserably poor if the machine-owners successfully lobby against wealth redistribution. So far, the trend seems to be toward the second option, with technology driving ever-increasing inequality."

    Writing and RP

  • i just inhaled super glue rlly hard and thats all i smell now... a m i g o n n a d i e
    VGMooseundefined VGMoose

    don't inhale glue!

    General

  • Worst holiday of all time
    VGMooseundefined VGMoose

    whaaat halloween rocks!

    General

  • What is your top 5 favorite anime?
    VGMooseundefined VGMoose

    yes!!! Well, the first season is, at least

    Anime

  • BrowseDNS - Enable Access to the Open Internet
    VGMooseundefined VGMoose

    @betterthenyou if you have a homebrew'd Switch, BrowseNX allows you to use audio and video, and has no timeout. For this reason, I think the petition actually has a decent shot of getting Nintendo to allow these features. Like, they already have them, they're just disabled.

    Websites and Internet Devices

  • Question for mods
    VGMooseundefined VGMoose

    let's go on record: whatever most people decide we should do in this thread, is what we'll do to such accounts

    Forum Archives

  • What is your top 5 favorite anime?
    VGMooseundefined VGMoose

    Psycho pass
    Death note
    Welcome to the NHK
    Toradora
    Dragonball Z

    Anime

  • bored...say something so im not
    VGMooseundefined VGMoose

    @LTempral oats n water and sometimes little dinosaur eggs, i believe

    General

  • How to Enable Chat Permissions
    VGMooseundefined VGMoose

    We're working on some better tools now to report inappropriate chat messages, just because something happens in DMs does not mean harassment of other users is tolerated.

    something similar to how flagging of users/posts works, or similar to this: https://help.twitter.com/en/safety-and-security/report-a-tweet

    Forum Archives

  • Felixa Lee Is Not A Lawyer Or Married Heres why
    VGMooseundefined VGMoose

    Please don't make threads targeting specific users and don't try to get people to group up against others. If there's an issue with a specific user, you can block that user, and if there's a deeper issue that violates forum rules, report/flag the user.

    We're on the Internet, so take anything that anyone tells you with a grain of salt. Actually, you can probably assume that people online may exaggerate the truth. But that's ok, and it doesn't need to be dwelled on unless it's actively harmful.

    @Felixa-Lee though, don't make off topic posts. If you want to talk about your life/career/experiences, use the Blogs or Writing categories, not unrelated threads, or messaging users over DM. If someone doesn't believe what you're saying, please don't take it upon yourself to continue messaging them to try to change their mind.

    General

  • random question
    VGMooseundefined VGMoose

    yeah, the Switch has a few security features, including their browser not supporting JIT compilation, which is how a lot of web exploits work. It's also running webkit, which is the same underlying browser that most phones and computers use.

    Also, Nintendo also has on their end a kill-switch: if they find out something in the browser is exploitable, they can force disable it until the next system update. In homebrew circles, this message is called the super nag (displays when trying to launch the browser):

    89beb05911bd177679ce0d19e341dcd7.png

    In the past, this has been used to prevent PegaSwitch from working. It should also be noted though that even when this happened, there wasn't a virus that was maliciously targeting Switch web users, only homebrew users using it to hack their devices.

    here's what PegaSwitch looks like when it activates (only works on older Switch firmwares):

    Technical Support
  • 1 / 1
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Groups
  • Users
  • Tags
  • Popular