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
699
Topics
86
Shares
0
Groups
17
Followers
165
Following
0
Medals

Posts

Recent Best Controversial

  • Beginning Website Dev and Coding Advice Thread
    VGMooseundefined VGMoose

    Personally, here's an example of one of those early sites I made way back in the day: https://backpack.vgmoose.com/2008/ . This uses pure HTML and iframes to display the different pages.

    I thought I was so cool... Nowadays, the best example of a site from scratch that I'm proud of is probably the homebrew appstore web frontend: https://apps.fortheusers.org . This is coded in React and Typescript, which is a lot more advanced, but really you're just (eventually) building off those same basic starting concepts ideas.

    Web Development

  • Beginning Website Dev and Coding Advice Thread
    VGMooseundefined VGMoose

    Hi! I've been making websites for a long time, too long really. It's great! If you want to start your own personal site, let's use this thread to give each other tips or support.

    I'll be checking in every day at least, so if you have a question, or need any tips, please feel free to ask!

    Initial starting resources:

    Development programs
    On PC: https://code.visualstudio.com/download
    In browser: https://vscode.dev

    Starter guide
    HTML: https://blog.hubspot.com/website/html

    Sites to host on:
    Github pages: https://pages.github.com

    If you've never ever made an HTML document ever, hubspot's guide looks pretty good. It goes over the basics of opening a file, editing, and previewing it. Once you have it looking how you want locally, hosting it is the next step.

    VSCode is a great starter IDE (or, text editor) that gets a lot of the basics right. Actually, I use VSCode for pretty much everything.

    Web Development

  • Suggestions for Default URLs?
    VGMooseundefined VGMoose

    At the top of the site header, there's a 🔗 icon on the far list that will contain a list of websites. Currently, I've added a link to the BrowseDNS Discord.

    What are some good ones that work well on the Switch, and would be convenient there?

    I'll also take these suggestions into account for updating the "Useful Links" section of the Switchbru landing page.

    Useful Sites

  • tumblr not working
    VGMooseundefined VGMoose

    Ah, I think it used to work... You can tack /mobile onto a tumblr URL and it works better, but I'm assuming the login is broken?

    Useful Sites tumblr

  • log in error
    VGMooseundefined VGMoose

    Is this still happening? We made some changes to try to fix it

    Suggestions / Requests

  • What just happened?
    VGMooseundefined VGMoose

    I don't think these users were actually signed in, and this was a bug with the "who's online" code regarding newly created accounts (see here)

    General

  • Pwsincd tv show
    VGMooseundefined VGMoose

    not creepy AT ALL /s

    General

  • Doing Alcohol
    VGMooseundefined VGMoose

    if you're old enough... drink in moderation I GUESS. Alcohol is fun at first, and definitely can help with social situations, but then it becomes the master of you and other ugly stuff.

    IRL Updates, Blogs & News.

  • How the new countdown timer works
    VGMooseundefined VGMoose

    Do you mean over other websites? It's not possible unfortunately. Depending on the site, it may be possible to display it within an iframe, but not all sites support this.

    Web Development

  • How the new countdown timer works
    VGMooseundefined VGMoose

    Already got some feedback from the Switchbru user survey:

    Why is there a 20 minute timer on the homepage? Is it when it automatically kicks me out when it hits zero?

    I mean, the answer is yes, but this is explained on the landing page too. Changed the wording a little to make it more clear.

    Web Development

  • How the new countdown timer works
    VGMooseundefined VGMoose

    Yes! I just added that. Let me know how they both go, I've already noticed if you visit both sites you'll mess up one of the two timers (since they don't really keep track, just each independently count down from 20 min).

    Technically we could make it smarter and try to guess about the actual session, using this info. This would be a server side endpoint that counts how many of those "every second" requests have been made so far, and when it hits 600, it will close.

    Web Development

  • Switch Countdown Timer Added
    VGMooseundefined VGMoose

    Added a countdown timer to the Switchbru DNS landing page as well. Since BrowseDNS and Switchbru both have separate timers, if you do visit both pages, one after the other, your timers will not be in sync (the second page will start counting too late).

    Announcements

  • nothing to see here
    VGMooseundefined VGMoose

    Maybe it was a bug then in the "who's online" display for newly created accounts (since normally, a newly created account would be online right away). I'll see about resetting the "score", cause 60 something seems hard to beat.

    Right now we aren't approving duplicate accounts, because in the past people have used them to message others and pretend to be multiple people, but are still talking about this rule. Sites like gbatemp have a strict no duplicates policy and even temporarily ban users that are found to violate this.

    General

  • How the new countdown timer works
    VGMooseundefined VGMoose

    kind of subtle but we do have this "Links" drop down: Screenshot 2022-12-30 at 4.58.46 PM.png, no way to customize the content inside though

    Web Development

  • How much should I sell this Wii U for?
    VGMooseundefined VGMoose

    Sell it to Maschell!

    Wii U

  • 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
  • 1
  • 2
  • 26
  • 27
  • 28
  • 29
  • 30
  • 34
  • 35
  • 28 / 35
  • Login

  • Don't have an account? Register

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