Skip to content

Instantly share code, notes, and snippets.

@epsilon-phase
Created July 10, 2019 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epsilon-phase/13c1b54e9ac76ab773a72e7028e78a0a to your computer and use it in GitHub Desktop.
Save epsilon-phase/13c1b54e9ac76ab773a72e7028e78a0a to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name AvatarCycler
// @author SkyFreak
// @version 1
// @grant none
// @url witches.live?
// ==/UserScript==
window.onload=function(){
var image=[
"https://cf.mastohost.com/v1/AUTH_91eb37814936490c95da7b85993cc2ff/awoochurch/site_uploads/files/000/000/001/original/117d82d52f7f9bf6.png",//Jorf
"https://vulpine.club/packs/media/flavours/glitch/images/mbstobon-ui-0-c2db2d4e0f644e543085d61dc1e3bca2.png",//Vulpine club stuff
'https://vulpine.club/packs/media/flavours/glitch/images/mbstobon-ui-1-d0e758efc52cdc0d220c5f575460e234.png',
null];//This one does the witch
var drawer=document.querySelector(".drawer__inner__mastodon > img:nth-child(1)");
var idx=Math.floor(Math.random()*image.length);
console.log(idx);
if (image[idx]!==null){
drawer.setAttribute("src",image[idx]);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment