Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name All Dreamwidth Anonymous Are ANBU
- // @namespace http://tampermonkey.net/
- // @version 1.0
- // @description Turns Anonymous posters into ANBU <randomly chosen animal>
- // @author MeatcarpetPrincess
- // @match https://*.dreamwidth.org/*
- // @grant none
- // ==/UserScript==
- //
- //
- function capitalizeFirstLetter(string) {
- return string.charAt(0).toUpperCase() + string.slice(1);
- }
- var animals = ['alligator', 'anteater', 'armadillo', 'auroch', 'axolotl', 'badger',
- 'bat', 'bear', 'beaver', 'blobfish', 'buffalo', 'camel', 'chameleon',
- 'cheetah', 'chipmunk', 'chinchilla', 'chupacabra', 'cormorant', 'coyote',
- 'crow', 'dingo', 'dinosaur', 'dog', 'dolphin', 'dragon', 'duck', 'dumbo octopus',
- 'elephant', 'ferret', 'fox', 'frog', 'giraffe', 'goose', 'gopher', 'grizzly',
- 'hamster', 'hedgehog', 'hippo', 'hyena', 'jackal', 'jackalope', 'ibex',
- 'ifrit', 'iguana', 'kangaroo', 'kiwi', 'koala', 'kraken', 'lemur',
- 'leopard', 'liger', 'lion', 'llama', 'manatee', 'mink', 'monkey',
- 'moose', 'narwhal', 'nyan cat', 'orangutan', 'otter', 'panda', 'penguin',
- 'platypus', 'python', 'pumpkin', 'quagga', 'quokka', 'rabbit', 'raccoon',
- 'rhino', 'sheep', 'shrew', 'skunk', 'slow loris', 'squirrel', 'tiger',
- 'turtle', 'unicorn', 'walrus', 'wolf', 'wolverine', 'wombat']
- var special = document.querySelectorAll( "span.anonymous" );
- special.forEach(function (currentValue, currentIndex, listObj){
- currentValue.innerText = "(ANBU " + capitalizeFirstLetter(animals[Math.floor((Math.random() * animals.length - 1) + 0)]) + ")";
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement