Advertisement
Guest User

Untitled

a guest
Apr 24th, 2016
1,923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. // ==UserScript==
  2. // @name findface hack
  3. // @include http://findface.ru/*
  4. // @version 1
  5. // @grant none
  6. // ==/UserScript==
  7.  
  8. (function(open) {
  9.  
  10. XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {
  11.  
  12. this.addEventListener("readystatechange", function() {
  13. if (this.readyState == 4 && url.startsWith("http://webapi.findface.ru/v2/search/list3")) {
  14. document.body.innerHTML = "";
  15. JSON.parse(this.responseText).forEach(function(e) {
  16. document.body.innerHTML += "<a target='_blank' href='https://vk.com/id" + e.user_id.toString() + "'</a>id" + e.user_id.toString() + "<br>";
  17. })
  18. }
  19. }, false);
  20.  
  21. open.call(this, method, url, async, user, pass);
  22. };
  23.  
  24. })(XMLHttpRequest.prototype.open);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement