Skip to content

Instantly share code, notes, and snippets.

@androidovshchik
Last active January 16, 2020 15:30
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 androidovshchik/9fe20db3733880f392b27f046eba847b to your computer and use it in GitHub Desktop.
Save androidovshchik/9fe20db3733880f392b27f046eba847b to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name FL
// @namespace http://androidovshchik.ru/
// @version 0.1
// @description Как вам такое, мошенники?
// @author Vlad
// @match https://fl.ru/*
// @match https://www.fl.ru/*
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.min.js
// ==/UserScript==
(function() {
'use strict';
var iv = "123"
var key = "12345"
var word = new Date().getTime().toString();
var hash = CryptoJS.AES.encrypt(word, key, {
iv: iv,
mode: CryptoJS.mode.CBC,
padding: CryptoJS.pad.Pkcs7
}).toString();
var descr = document.getElementById("el-descr");
if (descr) {
descr.value = "Привет\nОбращайтесь, контакты ниже\nВ целях безопасности напишите:\n\"" + hash + "\"\nДолжен быть ответ: " + word + "\nЕсли его НЕ будет, то вы написали НЕ мне\nТелеграм @vladkalyuzhnyu";
var time_from = document.getElementById("el-time_from");
if (time_from) {
time_from.value = "1";
}
var cost_from = document.getElementById("el-cost_from");
if (cost_from) {
try {
var cost_types = document.getElementsByClassName("js-cost_type");
var cost = cost_types[2].innerText.split(" ")[1];
cost_from.value = cost;
} catch(e) {
alert(e);
cost_from.value = "1000";
}
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment