MediaWiki:Common.js: Difference between revisions

From Game Detectives Wiki
Jump to navigation Jump to search
m remove all code except for GD badge in console - jquery version conflicts were preventing VisualEditor from loading
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 64: Line 64:
   // Console art ad
   // Console art ad
   (function () {
   (function () {
    if (checkURL.match('Main_Page')) {
      console.log('\n' +
        '                          ........                          \n' +
        '                  hs+:.````` ` ` ````.:+sh                  \n' +
        '        _ on+so/:.` ` ` ` ` ` ` ` ` ` ` ` .:\\os+no _      \n' +
        '      /e ` ` ` ` ` ` W E L C O M E `T`O` ` ` ` ` ` e\\      \n' +
        '    c` ` ` ` ` G A M E `D`E`T`E`C`T`I`V`E`S` ` ` ` ` r    \n' +
        '    H ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `t    \n' +
        '    e.` ` ` ` ` ` ` ` ` -:. ` ` `.:-` ` ` ` ` ` ` ` ` .a    \n' +
        '  c-` ` ` ` ` ` ` ` `/dNNNh\\--/hNNNd\\ ` ` ` ` ` ` ` ` `p  \n' +
        ' K+.` ` ` ` ` ` ` ` `+NNNNNNNNNNNNNNNN+ ` ` ` ` ` ` ` ` `+N \n' +
        '+ ` ` ` ` ` ` ` ` ` sNNNNNNNNNNNNNNNNNNs ` ` ` ` ` ` ` ` ` o\n' +
        'O` ` ` ` ` ` ` ` ` sNNNNNNNNNNNNNNNNNNNNs ` ` ` ` ` ` ` ` `+\n' +
        'U ` ` ` ` ` ` ` ` oNNNNNNNNNNNNNNNNNNNNNNo ` ` ` ` ` ` ` ` s\n' +
        'T` ` ` ` ` ` ` ` /mmmmmmmmmmmmmmmmmmmmmmmm\\ ` ` ` ` ` ` ` `u\n' +
        '+ ` ` ` ` ` .:+oymNNNNNNNNNNNNNNNNNNNNNNNNmyo+:. ` ` ` ` ` +\n' +
        'O` ` ` -:+shhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhbb+:- ` ` `D              Like what you see? Get Involved!\n' +
        'U ` ` ` ` ` ` ` ` ` ./oNNNo\\-  -/oNNNo\\. ` ` ` ` ` ` ` ` ` N\n' +
        'R` ` ` ` ` ` ` ` ` -mNNNNNNNm  mNNNNNNNd- ` ` ` ` ` ` ` ` `I            https://discord.gamedetectives.net\n' +
        '+ ` ` ` ` ` ` ` ` `-mNNNNNNNh  hNNNNNNNm.` ` ` ` ` ` ` ` ` F              https://twitter.com/G_detectives\n' +
        'A` ` ` ` ` ` ` ` ` `:dNNNNh/ ` `\\hNNNNd-` ` ` ` ` ` ` ` ` `+                https://gamedetectives.net\n' +
        'R ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `D\n' +
        'G` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` R\n' +
        '+ ` ` ` ` .os+:.` ` ` ` ` ` ` ` ` ` ` ` ` ` .:+so.` ` ` ` `O          Want cooler stuff? Support GD on Patreon!\n' +
        ' A ` ` ` ` .racecar\\.` ` ` ` ` ` ` ` ` ./racecar.` ` ` ` `c \n' +
        ' `c ` ` ` ` `sNNNNNNs ` ` ` ` ` ` ` ` `sNNNNNNs ` ` ` ` `s`            https://www.patreon.com/gamedetectives/\n' +
        '  a` `/oxbyttamNNNNNmy+. ` ` ` ` ` `.+ymNNNNNmattybxo\\ ` i  \n' +
        '  D\\` .diNNNNNNNNNNER+:os\\. ` ` `./so:+NNNNNNNNNNNNOd.` /d  \n' +
        '  `e-` :mNNNNNNNNNNNNm-``-++:` :++-``-mNNNNNNNNNNNNm:` -+`  \n' +
        '  `M.` \\mNNNNNNNNNNNNd.```-shhs-```.dNNNNNNNNNNNNm/` .N`  \n' +
        '    `Y.` :mNNNNNNNNNNNNs`.yummmmuy.`sNNNNNNNNNNNNm:` .i`    \n' +
        '    `+.` -hNNNNNNNNNNNN\\smmmmmmmms/NNNNNNNNNNNNh-` .+`    \n' +
        '      V:` .omNNNNNNNNNNmmmmmmmmmmmmNNNNNNNNNNom.` :s      \n' +
        '        I+. `-omNNNNNNNNNNmmmmmmmmNNNNNNNNNNom-` .u        \n' +
        '        `S: ` :hNNNNNNNNNNmmmmmmNNNNNNNNNNh: ` :+`        \n' +
        '          `i:` `:ymNNNNNNNmmmmmmNNNNNNNmy:` `:N`          \n' +
        '            `t\\.` .+hNNNNNNmmmmNNNNNNh+. `./I`            \n' +
        '              `+u: ` -ohmNNHmmENNmho- ` :jO`              \n' +
        '                  `s+: ` .\\shmmhs/. ` :t+`                  \n' +
        '                    `on\\.` `..` `./dI`                    \n' +
        '                        ``+R\\--/eD``                        '
      );
    }
    else {
       console.log('\n' +
       console.log('\n' +
         '                          ........                          \n' +
         '                          ........                          \n' +
Line 149: Line 105:
         '                        ``+R\\--/eD``                        '
         '                        ``+R\\--/eD``                        '
       );
       );
    }
   })();
   })();



Latest revision as of 03:58, 17 November 2025

/* Scripts within main function will load on all pages for all users */

// BEGIN MAIN FUNCTION

(function main() {



  /* BEGIN COWBOY CHANGES

  // Propegation Test

  // jQuery on every page

  END COWBOY CHANGES */



  /* BEGIN IDEAS

  // Investigation List page popup in bottom right to notify of popup on-click functionality

  // Detection of weird characters in titles to form them correctly for links and content (ie + -> %2B)

  // Subtle info popup to inform about row click popup on investigation list page

  // EditorTools functionality

  // Much sweeter main page

  // When you get a page that doesn't exist, use smw to query about it. If a page is found that way, redirect to it
  // in this way, case-misspellings like Inside arg will correct if a page exists with that name, ie Inside ARG (the actual page)

  // Responsive popup behavior - resize if viewport isn't large enough for 900px version

  // Programmatic back to top button
  // - appears on page scroll after main image is not in view
  // - better, more consistent styling
  // - break support for template button after implement

  // Programmatic argHeader
  // - implement without affecting page draw in a significant way

  // Investigate MW actions/hooks
  // - any useful for current implementations?

  // Listen for clicks on the hide link when the TOC is floating. If clicked, replace with an element
  // that has a show link. animate the change.

  END IDEAS */



  // BEGIN FUNCTION AND VARIABLE DEFINITION SPACE

 
  // END FUNCTION AND VARIABLE DEFINITION SPACE



  // BEGIN CODE SPACE

  /* Say Hello */
  // Console art ad
  (function () {
      console.log('\n' +
        '                          ........                          \n' +
        '                  hs+:.````` ` ` ````.:+sh                  \n' +
        '        _ on+so/:.` ` ` ` ` ` ` ` ` ` ` ` .:\\os+no _       \n' +
        '      /e ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` e\\      \n' +
        '     c` ` ` ` ` G A M E `D`E`T`E`C`T`I`V`E`S` ` ` ` ` r     \n' +
        '     H ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `t     \n' +
        '    e.` ` ` ` ` ` ` ` ` -:. ` ` `.:-` ` ` ` ` ` ` ` ` .a    \n' +
        '   c-` ` ` ` ` ` ` ` `/dNNNh\\--/hNNNd\\ ` ` ` ` ` ` ` ` `p   \n' +
        ' K+.` ` ` ` ` ` ` ` `+NNNNNNNNNNNNNNNN+ ` ` ` ` ` ` ` ` `+N \n' +
        '+ ` ` ` ` ` ` ` ` ` sNNNNNNNNNNNNNNNNNNs ` ` ` ` ` ` ` ` ` o\n' +
        'O` ` ` ` ` ` ` ` ` sNNNNNNNNNNNNNNNNNNNNs ` ` ` ` ` ` ` ` `+\n' +
        'U ` ` ` ` ` ` ` ` oNNNNNNNNNNNNNNNNNNNNNNo ` ` ` ` ` ` ` ` s\n' +
        'T` ` ` ` ` ` ` ` /mmmmmmmmmmmmmmmmmmmmmmmm\\ ` ` ` ` ` ` ` `u\n' +
        '+ ` ` ` ` ` .:+oymNNNNNNNNNNNNNNNNNNNNNNNNmyo+:. ` ` ` ` ` +\n' +
        'O` ` ` -:+shhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhbb+:- ` ` `D              Like what you see? Get Involved!\n' +
        'U ` ` ` ` ` ` ` ` ` ./oNNNo\\-  -/oNNNo\\. ` ` ` ` ` ` ` ` ` N\n' +
        'R` ` ` ` ` ` ` ` ` -mNNNNNNNm  mNNNNNNNd- ` ` ` ` ` ` ` ` `I             https://discord.gamedetectives.net\n' +
        '+ ` ` ` ` ` ` ` ` `-mNNNNNNNh  hNNNNNNNm.` ` ` ` ` ` ` ` ` F              https://twitter.com/G_detectives\n' +
        'A` ` ` ` ` ` ` ` ` `:dNNNNh/ ` `\\hNNNNd-` ` ` ` ` ` ` ` ` `+                 https://gamedetectives.net\n' +
        'R ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` `D\n' +
        'G` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` ` R\n' +
        '+ ` ` ` ` .os+:.` ` ` ` ` ` ` ` ` ` ` ` ` ` .:+so.` ` ` ` `O          Want cooler stuff? Support GD on Patreon!\n' +
        ' A ` ` ` ` .racecar\\.` ` ` ` ` ` ` ` ` ./racecar.` ` ` ` `c \n' +
        ' `c ` ` ` ` `sNNNNNNs ` ` ` ` ` ` ` ` `sNNNNNNs ` ` ` ` `s`            https://www.patreon.com/gamedetectives/\n' +
        '  a` `/oxbyttamNNNNNmy+. ` ` ` ` ` `.+ymNNNNNmattybxo\\ ` i  \n' +
        '  D\\` .diNNNNNNNNNNER+:os\\. ` ` `./so:+NNNNNNNNNNNNOd.` /d  \n' +
        '  `e-` :mNNNNNNNNNNNNm-``-++:` :++-``-mNNNNNNNNNNNNm:` -+`  \n' +
        '   `M.` \\mNNNNNNNNNNNNd.```-shhs-```.dNNNNNNNNNNNNm/` .N`   \n' +
        '    `Y.` :mNNNNNNNNNNNNs`.yummmmuy.`sNNNNNNNNNNNNm:` .i`    \n' +
        '     `+.` -hNNNNNNNNNNNN\\smmmmmmmms/NNNNNNNNNNNNh-` .+`     \n' +
        '       V:` .omNNNNNNNNNNmmmmmmmmmmmmNNNNNNNNNNom.` :s       \n' +
        '        I+. `-omNNNNNNNNNNmmmmmmmmNNNNNNNNNNom-` .u         \n' +
        '         `S: ` :hNNNNNNNNNNmmmmmmNNNNNNNNNNh: ` :+`         \n' +
        '           `i:` `:ymNNNNNNNmmmmmmNNNNNNNmy:` `:N`           \n' +
        '             `t\\.` .+hNNNNNNmmmmNNNNNNh+. `./I`             \n' +
        '               `+u: ` -ohmNNHmmENNmho- ` :jO`               \n' +
        '                  `s+: ` .\\shmmhs/. ` :t+`                  \n' +
        '                     `on\\.` `..` `./dI`                     \n' +
        '                        ``+R\\--/eD``                        '
      );
  })();


  // END CODE SPACE



})(); // END MAIN FUNCTION