Skip to content
View Haprog's full-sized avatar

Organizations

@irssiconnectbot

Block or report Haprog

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. hash-actions hash-actions Public

    A small utility lib for working with the "hashchange" event and "window.location.hash". Makes it easy to define actions that happen when the user "enters" or "exits" specific URL fragments on the p…

    JavaScript

  2. A version of querySelectorAll() that... A version of querySelectorAll() that also recursively looks into all shadow roots
    1
    /**
    2
     * A version of querySelectorAll() that also recursively looks into all shadow roots.
    3
     * @param selector Selector
    4
     * @param root (Optional) Scope of the query (Element or Document). Defaults to the document.
    5
     * @returns 
  3. Utility methods for loading a script. Utility methods for loading a script.
    1
    /**
    2
     * Load the given script.
    3
     * (appends a new <script> tag to the end of the main document's <head> tag)
    4
     *
    5
     * @param {string}  src   URL if the script to be loaded
  4. Rate Limiting JavaScript Function Call Rate Limiting JavaScript Function Call
    1
    // Returns a new function that will call the given "func" at most once every "wait" milliseconds.
    2
    // Based on debounce function from: https://davidwalsh.name/essential-javascript-functions
    3
    function rateLimit(func, wait) {
    4
      var waiting = false;
    5
      return function() {