Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. // ==UserScript==
  2. // @name JOIN GROUP
  3. // @version 1.0
  4. // @author Kaszanka
  5. // @match *://steamcommunity.com/search/*
  6. // @match *://steamcommunity.com/groups/*
  7. // @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
  8. // @grant none
  9. // ==/UserScript==
  10. setInterval(function(){
  11. if (location.pathname === "/search/"){
  12. if (jQuery(".search_row").length === 0){
  13. CommunitySearch.NextPage();
  14. }else{
  15. var Link=jQuery(".search_row:first a").attr('href');
  16. window.open(Link);
  17. jQuery(".search_row:first").remove();
  18. }
  19. }else{
  20. setInterval(function(){
  21. if (jQuery(".grouppage_join_area a span").text() === "Dołącz do grupy"){
  22. location.href = jQuery(".grouppage_join_area a").attr("href");
  23.  
  24. }
  25. }, 5000);
  26. }
  27. }, 5000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement