Difference between revisions of "User:Pitula101"

From Tycoon Gaming
m
m (not sus, white mode)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<div style="background-color:#E3E3E3; border:2px solid red; border-radius:5px; margin:8px; padding:8px; text-align:center; font-size:1.2em; color:black;">
 
=Pit Sandbox=
 
=Pit Sandbox=
<div style="position: relative; top: 0; right: 0;">
+
Stupid JS
  <button id="myButton">Click me</button>
 
</div>
 
 
 
<script>
 
  document.getElementById("myButton").addEventListener("click", function() {
 
    (() => {
 
  document.body.style.fontFamily = 'Comic Sans MS';
 
 
 
  // OwO whats this vewsion 6.9.?c ~ :3
 
  // I h-hope you l-like it...
 
 
 
  let stutterChance = 0.1;
 
  let prefixChance = 0.05;
 
  let suffixChance = 0.15;
 
  let words = {
 
    love: 'wuv',
 
    mr: 'mistuh',
 
    dog: 'doggo',
 
    cat: 'kitteh',
 
    hello: 'henwo',
 
    hell: 'heck',
 
    fuck: 'fwick',
 
    fuk: 'fwick',
 
    shit: 'shoot',
 
    friend: 'fwend',
 
    stop: 'stawp',
 
    god: 'gosh',
 
    dick: 'peepee',
 
    penis: 'peepee'
 
  };
 
  let suffixes = [
 
    '(ノ´ з `)ノ',
 
    '( ´ ▽ ` ).。o♡',
 
    '(´,,•ω•,,)♡',
 
    '(*≧▽≦)',
 
    'ɾ⚈▿⚈ɹ',
 
    '( ゚∀ ゚)',
 
    '( ・ ̫・)',
 
    '( •́ .̫ •̀ )',
 
    '(▰˘v˘▰)',
 
    '(・ω・)',
 
    '✾(〜 ☌ω☌)〜✾',
 
    '(ᗒᗨᗕ)',
 
    '(・`ω´・)',
 
    ':3',
 
    '>:3',
 
    'hehe',
 
    'xox',
 
    '>3<',
 
    'murr~',
 
    'UwU',
 
    '*gwomps*'
 
  ];
 
  let prefixes = [
 
    'OwO',
 
    'OwO whats this?',
 
    '*unbuttons shirt*',
 
    '*nuzzles*',
 
    '*waises paw*',
 
    '*notices bulge*',
 
    '*blushes*',
 
    '*giggles*',
 
    'hehe'
 
  ];
 
 
 
  function replaceAll(text, map) {
 
    let source = Object.keys(map).map(i => `\\b${i}`);
 
    let re = new RegExp(`(?:${source.join(')|(?:')})`, 'gi');
 
    return text.replace(re, match => {
 
      let out = map[match.toLowerCase()];
 
      // Not very tidy way to work out if the word is capitalised
 
      if ((match.match(/[A-Z]/g) || []).length > match.length / 2) out = out.toUpperCase();
 
      return out;
 
    });
 
  }
 
 
 
  function owoify(text) {
 
    text = replaceAll(text, words);
 
    // OwO
 
    text = text.replace(/[rl]/gi, match =>
 
      match.charCodeAt(0) < 97 ? 'W' : 'w'
 
    );
 
    // Nya >;3
 
    text = text.replace(/n[aeiou]/gi, match =>
 
      `${match[0]}${match.charCodeAt(1) < 97 ? 'Y' : 'y'}${match[1]}`
 
    );
 
    // Words that end in y like cummy wummy
 
    text = text.replace(/\b[A-V,X-Z,a-v,x-z]\w{3,}y\b/gi, match =>
 
      `${match} ${match.charCodeAt(0) < 97 ? 'W' : 'w'}${match.slice(1)}`
 
    );
 
    // S-stutter
 
    text = text.split(' ').map(word => {
 
      if (word.length === 0 || word[0].match(/[a-zA-Z]/) == null) return word;
 
      while (Math.random() < stutterChance) {
 
        word = `${word[0]}-${word}`;
 
      }
 
      return word;
 
    }).join(' ');
 
    // Prefixes
 
    if (Math.random() < prefixChance) {
 
      text = `${text} ${suffixes[Math.floor(Math.random() * suffixes.length)]}`;
 
    }
 
    // Suffixes
 
    if (Math.random() < suffixChance) {
 
      text = `${prefixes[Math.floor(Math.random() * prefixes.length)]} ${text}`;
 
    }
 
    return text;
 
  }
 
 
 
  function recurse(node) {
 
    if (['STYLE', 'SCRIPT', 'NOSCRIPT', 'IFRAME', 'OBJECT'].includes(node.tagName)) return;
 
    for (let child of node.childNodes) {
 
      recurse(child);
 
    }
 
    if (node.nodeType === 3 && node.nodeValue != null) {
 
      node.nodeValue = owoify(node.nodeValue);
 
    }
 
  }
 
 
 
  document.body.addEventListener('DOMNodeInserted', event => {
 
    recurse(event.target);
 
  });
 
  recurse(document.body);
 
 
 
  const scode = document.getElementById('legitcode');
 
  if (scode) {
 
    scode.remove();
 
    console.log('script gone');
 
  }
 
})();
 
 
 
 
 
  });
 
</script>
 
 
 
  
 
*Yes, I like foxes;
 
*Yes, I like foxes;
Line 142: Line 8:
 
=Contributes=
 
=Contributes=
 
Polish translations, but nowadays mostly [[Commands]] and [[Binds]].
 
Polish translations, but nowadays mostly [[Commands]] and [[Binds]].
 +
 +
```diff
 +
- Also testing, Hi Donald
 +
```
 +
 +
{|class = "article-table  sortable" style="font-weight:bold;"
 +
! rowspan="2" style="text-align:center; font-weight:bold;" | Places
 +
! colspan="8" style="text-align:center; font-weight:bold;" | Animals
 +
|-
 +
! '''Rabbit'''
 +
! '''Deer'''
 +
! '''Coyote'''
 +
! '''Wolf'''
 +
! '''Cougar'''
 +
! '''Leopard'''
 +
! '''Lion'''
 +
! '''Bear'''
 +
|-
 +
| Park Ranger's Office
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#cb0000;" | ✕
 +
|-
 +
| Hunter's Lodge
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#cb0000;" | ✕
 +
|-
 +
| Cayo Perico Pest Patrol
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#cb0000;" | ✕
 +
|-
 +
| Stab City Hunters
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#32cb00;" | ✓
 +
|-
 +
| Grapeseed Poachers
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#cb0000;" | ✕
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#32cb00;" | ✓
 +
| style="color:#32cb00;" | ✓
 +
|}
  
  
 
[[File:F7PL.png|center|784px]]
 
[[File:F7PL.png|center|784px]]
 +
<br />

Latest revision as of 19:13, 6 January 2024

Pit Sandbox

Stupid JS

  • Yes, I like foxes;
  • No, I won't say: "What does the fox say?".

Contributes

Polish translations, but nowadays mostly Commands and Binds.

```diff - Also testing, Hi Donald ```

Places Animals
Rabbit Deer Coyote Wolf Cougar Leopard Lion Bear
Park Ranger's Office
Hunter's Lodge
Cayo Perico Pest Patrol
Stab City Hunters
Grapeseed Poachers


F7PL.png