Skip to content

Instantly share code, notes, and snippets.

@desudesutalk
Last active December 21, 2015 16:11
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 desudesutalk/77546da4fde17a1fb9f4 to your computer and use it in GitHub Desktop.
Save desudesutalk/77546da4fde17a1fb9f4 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name SynchEmailSwitcher
// @namespace udp://SynchTripWars/*
// @version 0.0.1
// @description post something useful
// @include *://*syn-ch.com/*
// @include *://*syn-ch.org/*
// @include *://*syn-ch.ru/*
// @include *://*syn-ch.com.ua/*
// @copyright 2015+, me
// @run-at document-end
// ==/UserScript==
var variants = {
"Суицид": '#suicide',
"Октошар": '#8ball',
"Летс Трай": '#letstry'
// вот сюда дописывать свои варианты.
};
var code = '<select name="email"><option value="">ничего</option>';
for(var t in variants){
code += "<option value='"+variants[t]+"'>"+t+'</option>';
}
code += '</select>';
$('input[name="email"]').replaceWith(code);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment