Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name JOIN GROUP
- // @version 1.0
- // @author Kaszanka
- // @match *://steamcommunity.com/search/*
- // @match *://steamcommunity.com/groups/*
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
- // @grant none
- // ==/UserScript==
- setInterval(function(){
- if (location.pathname === "/search/"){
- if (jQuery(".search_row").length === 0){
- CommunitySearch.NextPage();
- }else{
- var Link=jQuery(".search_row:first a").attr('href');
- window.open(Link);
- jQuery(".search_row:first").remove();
- }
- }else{
- setInterval(function(){
- if (jQuery(".grouppage_join_area a span").text() === "Dołącz do grupy"){
- location.href = jQuery(".grouppage_join_area a").attr("href");
- }
- }, 5000);
- }
- }, 5000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement