Show Bumble Votes

show how your encounters voted on you before you swipe

Version vom 12.03.2022. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Show Bumble Votes
// @namespace   https://habs.sdf.org/
// @match       https://bumble.com/*
// @grant       none
// @version     1.1
// @author      habs
// @description show how your encounters voted on you before you swipe
// @grant       GM.setValue
// @grant       GM.getValue
// @license     AGPLv3
// ==/UserScript==

/* jshint esversion: 6 */

const encs = [];
let user;
let hasVoted;
GM.getValue('voted', false).then(voted => hasVoted = voted);

if (!unsafeWindow.XMLHttpRequest.prototype.getResponseText) {
	unsafeWindow.XMLHttpRequest.prototype.getResponseText = Object.getOwnPropertyDescriptor(unsafeWindow.XMLHttpRequest.prototype, 'responseText').get;
}
Object.defineProperty(unsafeWindow.XMLHttpRequest.prototype, 'responseText', {
	get: exportFunction(function() {
		let responseText = unsafeWindow.XMLHttpRequest.prototype.getResponseText.call(this);
    if (this.responseURL === "https://bumble.com/mwebapi.phtml?SERVER_APP_STARTUP") {
      const resp = JSON.parse(responseText);
      user = resp.body.find(o => o.user).user;
    }
    if (this.responseURL === "https://bumble.com/mwebapi.phtml?SERVER_ENCOUNTERS_VOTE") {
      const resp = JSON.parse(responseText);
      if (resp.body[0].client_vote_response.person_id === 'zAhMACjE3Mjk3MDM0NTgAIAHjjZ8J9bO_y9_HqD3dpSJV4E4uRAskvT8DUFdElzE_') {
        GM.setValue('voted', true);
        hasVoted = true;
      }
    }
    if (this.responseURL === "https://bumble.com/mwebapi.phtml?SERVER_GET_ENCOUNTERS") {
      const resp = JSON.parse(responseText);
      encs.push(...resp.body[0].client_encounters.results);
      console.log(resp.body[0].client_encounters.quota);
      if (user.gender === 2 && user.age >= 20 && user.age <= 30) {
        if (!hasVoted) {
          resp.body[0].client_encounters.results.unshift({"$gpb":"badoo.bma.SearchResult","has_user_voted":false,"user":{"$gpb":"badoo.bma.User","user_id":"zAhMACjE3Mjk3MDM0NTgAIAHjjZ8J9bO_y9_HqD3dpSJV4E4uRAskvT8DUFdElzE_","projection":[370,1150,890,200,210,230,490,1140,1161,380,100,231,10,1160,1161,540,530,291,493],"client_source":1,"access_level":10,"name":"Harry","age":25,"gender":1,"verification_status":4,"albums":[{"$gpb":"badoo.bma.Album","uid":"me:zAhMACjE3Mjk3MDM0NTgAIAHjjZ8J9bO_y9_HqD3dpSJV4E4uRAskvT8DUFdElzE_","name":"Photos of Harry","owner_id":"zAhMACjE3Mjk3MDM0NTgAIAHjjZ8J9bO_y9_HqD3dpSJV4E4uRAskvT8DUFdElzE_","access_type":0,"accessable":true,"adult":false,"requires_moderation":false,"count_of_photos":5,"instruction":"Photos of only you, which easily identify you and show your face clearly.","is_upload_forbidden":false,"photos":[{"$gpb":"badoo.bma.Photo","id":"1373921214","preview_url":"//pd1us.bumbcdn.com/p560/hidden?euri=SJgbNdah2y63FE5p4gxm32.dYNlioT5Cdtpxr0sUOTVKJAkLxKqiYOxN0HKqZuIAJoCe9nHVITWouYfxUvWSy1JSpnOEfPcu6bGruv.r.3s5YjK5jowl90BfU3M9xF2B88HZmfpqIlYn-W7UyDadQjJLjzt-aUrAkOndVAR5tuk&size=__size__&ck=26ed129871258b01614968a068786615&h=5Sp&gs=o&t=42.1.0.0","large_url":"//pd1us.bumbcdn.com/p560/hidden?euri=q24O-E0otoalF2mPbyfuieiAxWHiTbW8RcCYXVc.nWcXG4CPJ.was2VyQ2dH9TSmzQoMFFzivHJH8DYTvszv99ItY-OeGUO9U1.aO4lf1MBCy8eBbpQkmH4nX8NwJQxRoxpwrkj9Jc8PjLXjy8xvS4SnUwj-58-pRJbrGsjbGN3btOQ5p3FYMg&size=__size__&ck=4b886fac455c34cf72f114accbf0c905&h=5Sp&gs=o&t=42.1.0.0","large_photo_size":{"$gpb":"badoo.bma.PhotoSize","width":945,"height":1680},"face_top_left":{"$gpb":"badoo.bma.Point","x":421,"y":757},"face_bottom_right":{"$gpb":"badoo.bma.Point","x":509,"y":845},"can_set_as_profile_photo":true,"is_pending_moderation":false,"preview_url_expiration_ts":1647653212,"large_url_expiration_ts":1647653212},{"$gpb":"badoo.bma.Photo","id":"1373939960","preview_url":"//pd1us.bumbcdn.com/p560/hidden?euri=mAW8JsZHnUTaNcXHdEJtqX.vhTgImmhMtQmPu9sA4Eob9QfJrwGCcY-bFAfRwgo8m.4ACYeaP2bkazfrj8C7Th2V-Yccf.oAD6vkJ7GEl2Mr3F4b0fYW.SM3IsdR-gttariWjUIZuEZElrpdUltjJZok03l85otbDMgT04jC1NQ&size=__size__&ck=efb67e85623ab19d3157001d973002d9&h=5Sp&gs=o&t=42.1.0.0","large_url":"//pd1us.bumbcdn.com/p560/hidden?euri=oo7B8hZTbPynSGi.r33LNsPbZBwvDdAE2Nuev27EkMTn-DGRf3kmToBFj6Q6pStYZMCO2batilvkSYVWSHFerCpXSp2QwcQqYlRfyEAr2t6hGqtVvw8pkjazcPiTf1AeF2UWBlCbSCn7tYm7A7XWx7uWeW7GeUZixg2CoRXJHLoK2MrQ5N4B6A&size=__size__&ck=2d9db54f7e9e77287c7e9ae075cbd4e1&h=5Sp&gs=o&t=42.1.0.0","large_photo_size":{"$gpb":"badoo.bma.PhotoSize","width":1024,"height":784},"face_top_left":{"$gpb":"badoo.bma.Point","x":363,"y":296},"face_bottom_right":{"$gpb":"badoo.bma.Point","x":534,"y":467},"can_set_as_profile_photo":true,"is_pending_moderation":false,"preview_url_expiration_ts":1647653212,"large_url_expiration_ts":1647653212},{"$gpb":"badoo.bma.Photo","id":"1373921707","preview_url":"//pd1us.bumbcdn.com/p560/hidden?euri=yD8OJHLbxI8BK8zEouIS9sE23Ik-33XjmBZgMixIryDWvjNTM33wv7PFkYsXVSPh4aipg0pi8-v7F3JfTcV0J7ExUgK.fcS3J2E6BmMyoaJZ08uVbVu47jlR1uMT5JS2PWNrNpg42mh3w8ajUda3jvq1bY7KNVouoBVitVcW9PI&size=__size__&ck=c9694f0dffc00b87ae2e64f15b33af77&h=5Sp&gs=o&t=42.1.0.0","large_url":"//pd1us.bumbcdn.com/p560/hidden?euri=2L6sjb2-sev5r5EYk7pKIqR46-68AuFZxwNBv9i1.-z7lTEURoHvYERqNE7eCwiW-cHgFEdmpNUYFh39y.gNdqMfLucNUPKAKInJtZav1vagQ7YzIAkUczi6yrUIVQgybSIbTIkuBGtnarUkYRwSRZJuKL-nHApRB3Muk31wkqLaU147Rnu5Lg&size=__size__&ck=f345a8fbbf1bf08fdb99810f5c5e268a&h=5Sp&gs=o&t=42.1.0.0","large_photo_size":{"$gpb":"badoo.bma.PhotoSize","width":424,"height":566},"face_top_left":{"$gpb":"badoo.bma.Point","x":77,"y":70},"face_bottom_right":{"$gpb":"badoo.bma.Point","x":169,"y":162},"can_set_as_profile_photo":true,"is_pending_moderation":false,"preview_url_expiration_ts":1647653212,"large_url_expiration_ts":1647653212},{"$gpb":"badoo.bma.Photo","id":"1373923083","preview_url":"//pd1us.bumbcdn.com/p560/hidden?euri=2A8E2SSE1KbeUtnpl5UTEJJvmEenff3ZKe4UuNddLmcFLsAjdY63Jdw3mJUoa7CawNfuy.itbtLtiBc7j6P9aiOA-FgoRQf7LMiJG4a-Y.juQrMlENXNjPTV4ZGWMbgssg0k.xIxgxjtLKSey1WfX5MVcNejzN0fPhMw4YyeFE4&size=__size__&ck=7b559389f83c0f15a39f22422a46afb8&h=5Sp&gs=o&t=42.1.0.0","large_url":"//pd1us.bumbcdn.com/p560/hidden?euri=0-BG-YtkHSey2sLCct6IdgUkUSvhpDNfMKxrvCvRanqa-8oLbOqnNHM0i7BrNB3cbN.7VriZi5GV2w3amhkjfEZYee7s1LRrlzWbMbdyBKaF7P6iTdSXQO5qO6ubcEeWTWEGVbKahMliG6zu6ZhnbNgbrqvz3NF9OedOHvnusL11dhStbs..EA&size=__size__&ck=a26d10b035c050fa2a4530923c7668aa&h=5Sp&gs=o&t=42.1.0.0","large_photo_size":{"$gpb":"badoo.bma.PhotoSize","width":1050,"height":1495},"face_top_left":{"$gpb":"badoo.bma.Point","x":429,"y":605},"face_bottom_right":{"$gpb":"badoo.bma.Point","x":675,"y":851},"can_set_as_profile_photo":true,"is_pending_moderation":false,"preview_url_expiration_ts":1647653212,"large_url_expiration_ts":1647653212},{"$gpb":"badoo.bma.Photo","id":"1373927670","preview_url":"//pd1us.bumbcdn.com/p560/hidden?euri=ruIADjwKkkeNMvHPz-MpEx5rILpZFgV6D1xM-mVQnTCzpVd90BndPRgstymaM3maLQdG7ZUKei-Blxx7AEs6WvJG9aZ-iqdAvEmgfnvLV8cdoQ96bAGNvWJdCRWa0DHCe8pkFqP3A12uptfiYiieTCuBGGgiXcnHyCtrctQ-wyE&size=__size__&ck=ad0ea215d8b2209d012761c346e7c336&h=5Sp&gs=o&t=42.1.0.0","large_url":"//pd1us.bumbcdn.com/p560/hidden?euri=LLHARKRqUu1J5sY2yGoVpel6SNlhLw8wHFX0OLtqV3.tOj5D6ZBvaUJ1s52EEeOgLaQRdMP9snKvjGjJTqjho5rYz0.GiSBPn.eDfhwPONC71vc1XdKx2fRkCA9pzxCFf7OuPkmjroTzlfRjDFS673bUwzAd835NlgvNk2boCcYY84X-X7vfiQ&size=__size__&ck=c7fa6fe0b4f6dbbeb2b9f851508549d6&h=5Sp&gs=o&t=42.1.0.0","large_photo_size":{"$gpb":"badoo.bma.PhotoSize","width":433,"height":625},"face_top_left":{"$gpb":"badoo.bma.Point","x":0,"y":0},"face_bottom_right":{"$gpb":"badoo.bma.Point","x":318,"y":318},"can_set_as_profile_photo":true,"is_pending_moderation":false,"preview_url_expiration_ts":1647653212,"large_url_expiration_ts":1647653212}],"album_type":7,"game_mode":0},{"$gpb":"badoo.bma.Album","uid":"external_feed:zAhMACjE3Mjk3MDM0NTgAIAHjjZ8J9bO_y9_HqD3dpSJV4E4uRAskvT8DUFdElzE_","name":"Instagram","owner_id":"zAhMACjE3Mjk3MDM0NTgAIAHjjZ8J9bO_y9_HqD3dpSJV4E4uRAskvT8DUFdElzE_","accessable":false,"adult":false,"requires_moderation":false,"count_of_photos":0,"instruction":"","is_upload_forbidden":false,"album_type":12,"access_level":6,"caption":"Harry’s Instagram","album_blocker":{"$gpb":"badoo.bma.PromoBlock","mssg":"Connecting your Instagram will add your latest posts to your profile. Your username won’t be visible.","promo_block_type":111,"promo_block_position":13,"buttons":[{"$gpb":"badoo.bma.CallToAction","text":"Connect Your Instagram","action":13,"type":1,"external_provider_type":12}],"context":8,"stats_variation_id":3},"external_provider":12}],"profile_fields":[{"$gpb":"badoo.bma.ProfileField","id":"work","type":12,"name":"Occupation","display_value":"Software Developer, Finance"},{"$gpb":"badoo.bma.ProfileField","id":"location","type":1,"name":"Location","display_value":"Union City"},{"$gpb":"badoo.bma.ProfileField","id":"aboutme_text","type":2,"name":"About me","display_value":"programmer and active person looking for a relationship. let's talk!"},{"$gpb":"badoo.bma.ProfileField","id":"headline_text","type":23,"name":"Headline","display_value":""},{"$gpb":"badoo.bma.ProfileField","id":"lifestyle_height","type":25,"name":"What is your height?","display_value":"6' 2''","required_action":3,"icon_url":"//pd1us.bumbcdn.com/i/big/assets/bumble_lifestyle_badges/normal/mobile_web/standard/sz___size__/ic_badge_profileChips_dating_heightv2.png","hp_element":490},{"$gpb":"badoo.bma.ProfileField","id":"lifestyle_exercise","type":25,"name":"Do you work out?","display_value":"Active","required_action":3,"icon_url":"//pd1us.bumbcdn.com/i/big/assets/bumble_lifestyle_badges/normal/mobile_web/standard/sz___size__/ic_badge_profileChips_dating_exercisev2.png","hp_element":904},{"$gpb":"badoo.bma.ProfileField","id":"lifestyle_education","type":25,"name":"What’s your education?","display_value":"","required_action":3,"icon_url":"//pd1us.bumbcdn.com/i/big/assets/bumble_lifestyle_badges/normal/mobile_web/standard/sz___size__/ic_badge_profileChips_dating_educationv2.png","hp_element":912},{"$gpb":"badoo.bma.ProfileField","id":"lifestyle_drinking","type":25,"name":"Do you drink?","display_value":"Socially","required_action":3,"icon_url":"//pd1us.bumbcdn.com/i/big/assets/bumble_lifestyle_badges/normal/mobile_web/standard/sz___size__/ic_badge_profileChips_dating_drinkingv2.png","hp_element":140},{"$gpb":"badoo.bma.ProfileField","id":"lifestyle_smoking","type":25,"name":"Do you smoke?","display_value":"Never","required_action":3,"icon_url":"//pd1us.bumbcdn.com/i/big/assets/bumble_lifestyle_badges/normal/mobile_web/standard/sz___size__/ic_badge_profileChips_dating_smokingv2.png","hp_element":144},{"$gpb":"badoo.bma.ProfileField","id":"lifestyle_dating_intentions","type":25,"name":"What do you want from your dates?","display_value":"","required_action":3,"icon_url":"//pd1us.bumbcdn.com/i/big/assets/bumble_lifestyle_badges/normal/mobile_web/standard/sz___size__/ic_badge_profileChips_dating_intentionsv2.png","hp_element":899},{"$gpb":"badoo.bma.ProfileField","id":"lifestyle_family_plans","type":25,"name":"What are your ideal plans for children?","display_value":"","required_action":3,"icon_url":"//pd1us.bumbcdn.com/i/big/assets/bumble_lifestyle_badges/normal/mobile_web/standard/sz___size__/ic_badge_profileChips_dating_familyPlansv2.png","hp_element":900},{"$gpb":"badoo.bma.ProfileField","id":"lifestyle_zodiak","type":25,"name":"What’s your zodiac sign?","display_value":"","required_action":3,"icon_url":"//pd1us.bumbcdn.com/i/big/assets/bumble_lifestyle_badges/normal/mobile_web/standard/sz___size__/ic_badge_profileChips_dating_starSignv2.png","hp_element":905},{"$gpb":"badoo.bma.ProfileField","id":"lifestyle_politics","type":25,"name":"What are your political leanings?","display_value":"Liberal","required_action":3,"icon_url":"//pd1us.bumbcdn.com/i/big/assets/bumble_lifestyle_badges/normal/mobile_web/standard/sz___size__/ic_badge_profileChips_dating_Politicsv2.png","hp_element":903},{"$gpb":"badoo.bma.ProfileField","id":"lifestyle_religion","type":25,"name":"Do you identify with a religion?","display_value":"","required_action":3,"icon_url":"//pd1us.bumbcdn.com/i/big/assets/bumble_lifestyle_badges/normal/mobile_web/standard/sz___size__/ic_badge_profileChips_dating_religionv2.png","hp_element":914},{"$gpb":"badoo.bma.ProfileField","id":"127","type":26,"name":"I’m a real nerd about...","display_value":"programming & linux 🐧","other_display_value":"","icon_url":"","hp_element":0,"is_featured":false},{"$gpb":"badoo.bma.ProfileField","id":"116","type":26,"name":"I will never shut up about...","display_value":"running & runners 🏃","other_display_value":"","icon_url":"","hp_element":0,"is_featured":false}],"profile_summary":{"$gpb":"badoo.bma.ProfileSummary","primary_text":"Software Developer, Finance"},"distance_long":"Union City","game_mode":0,"jobs":[{"$gpb":"badoo.bma.Experience","id":"1373921330","type":1,"name":"Software Developer, Finance","organization_name":"","selected":true,"source":1,"moderation_failed":false}],"hometown":{"$gpb":"badoo.bma.Location"},"residence":{"$gpb":"badoo.bma.Location"},"is_in_private_mode":false,"context_info":"🇺🇸 Works in New York, NY","their_vote":1}});
          resp.body[0].client_encounters.results.pop();
        }
      }
      responseText = JSON.stringify(resp);
    }
    return responseText;
	}, unsafeWindow),
	enumerable: true,
	configurable: true
});

const userIds = [];
window.setInterval(() => {
  const hdr = document.querySelector('.encounters-story-profile__header');
  if (!hdr) return;
  if (hdr.parentElement.querySelector('.showBumbleVotes')) return;
  const name = (document.querySelector('.encounters-story-profile__name') || {}).innerText;
  const age = +(document.querySelector('.encounters-story-profile__age') || { innerText: '' }).innerText.replace(',', '').trim();
  const enc = encs.find(enc => enc.user.name === name && enc.user.age === age);
  if (!enc) return;
  userIds.push({ name, id: enc.user.user_id });
  console.log(userIds);
  const div = document.createElement('div');
  div.classList.add('showBumbleVotes');
  const vote = enc.user.their_vote;
  div.innerHTML = vote === 1 ? 'Not voted!' : vote === 2 ? 'Swiped right!' : vote === 3 ? 'Swiped left!' : 'Unknown!';
  hdr.after(div);
}, 1000);