GithubHelp home page GithubHelp logo

ogoy-buddies's Introduction

Ogoy Buddies Visibility Toggler

Toggles the visibility of buddies on ogoy.app

Installation on Chrome (on Linux)

  1. Make your browser's bookmark bar visible by pressing ctrl+shift+b
  2. Select all the content of the gray box below (tripple click in the box) and press ctrl+c
  3. Now right click the book mark bar and select Add page...
  4. Paste the content of the gray box into the URL: field by clearing its content and pressing ctrl+v.
  5. Save the bookmark, open an ogoy scene and click on the bookmark to use the new function. buddies_1.js:
javascript:  /* Toggles visibility of all tracks on Ogoy.app. */ ( function(){ function tagsWithClass(root, tag, cls){ tags = Array.from(root.getElementsByTagName(tag)); return tags.filter(createClassFilter(cls)); } function createClassFilter(cls){ return function(tag){ attributeClass = tag.getAttribute('class'); return attributeClass && attributeClass.indexOf(cls) != -1; } } function createBuddyFilter(buddyList){ return function(tag){ return buddyList.includes(tag.innerHTML); } } function click(element){ element.click() }  /* open member window first */ menus = tagsWithClass(document, 'div', 'top-menu-item'); menu_active = menus[2].parentElement.getAttribute('class').includes('hidden'); !menu_active && click(menus[2]); buddyList=['Morgenthaler Stephan', 'Stephan Morgenthaler', 'Breitinger Dominik', 'Dietrich Olivier', 'Wicki Markus S.', 'Thiébaud Fabrice', 'Dunkel Christoph', 'Aeschbacher Roger']; buddyFilter = createBuddyFilter(buddyList);  /* toggle buddies from hidden list */ hidden_list = document.getElementById('hidden'); pilots = tagsWithClass(hidden_list, 'div', 'pilot-name'); buddies = pilots.filter(buddyFilter); buddies.forEach(click);  /* close member view confirms = tagsWithClass(document, 'div', 'confirm-button'); setTimeout(function(){ !menu_active && click(confirms[1]); }, 10000); */ })()

buddies_2.js:

javascript:  /* Toggles visibility of all tracks on Ogoy.app. */ ( function(){ function tagsWithClass(root, tag, cls){ tags = Array.from(root.getElementsByTagName(tag)); return tags.filter(createClassFilter(cls)); } function createClassFilter(cls){ return function(tag){ attributeClass = tag.getAttribute('class'); return attributeClass && attributeClass.indexOf(cls) != -1; } } function createBuddyFilter(buddyList){ return function(tag){ return buddyList.includes(tag.innerHTML); } } function click(element){ element.click() }  /* open member window first */ menus = tagsWithClass(document, 'div', 'top-menu-item'); menu_active = menus[2].parentElement.getAttribute('class').includes('hidden'); !menu_active && click(menus[2]); buddyList=['Morgenthaler Stephan', 'Stephan Morgenthaler', 'Breitinger Dominik', 'Dietrich Olivier', 'Wicki Markus S.', 'Thiébaud Fabrice', 'Dunkel Christoph', 'Aeschbacher Roger']; buddyFilter = createBuddyFilter(buddyList);  /* toggle buddies from hidden list */ hidden_list = document.getElementById('hidden'); pilots = tagsWithClass(hidden_list, 'div', 'pilot-name'); buddies = pilots.filter(buddyFilter); buddies.forEach(click);  /* close member view confirms = tagsWithClass(document, 'div', 'confirm-button'); setTimeout(function(){ !menu_active && click(confirms[1]); }, 10000); */ })()

Updates

If ogoy.app makes some changes to their code, the bookmark might not work anymore. Wait for this page to update, remove the bookmark and install it again.

Disclaimer

This is a code injection which could be used against you. Only use sources you trust.

ogoy-buddies's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.