Skip to main content
added 253 characters in body
Source Link
Glorfindel Mod
  • 255.6k
  • 61
  • 638
  • 1.3k

Here is a simple userscript that you could use until this functionality is implemented:. It works on all user profiles (except for the Tags tab, that is limited to your own user ID) - if you visit my profile, the search bar will be prepopulated with user:295232 is:a.

// ==UserScript==
// @name        Stack Exchange, Improved Search From Profile
// @author      Glorfindel
// @version     0.1
// @match       *://*.stackexchange.com/users/*
// @match       *://*.stackoverflow.com/users/*
// @match       *://*.superuser.com/users/*
// @match       *://*.serverfault.com/users/*
// @match       *://*.askubuntu.com/users/*
// @match       *://*.stackapps.com/users/*
// @match       *://*.mathoverflow.net/users/*
// @exclude     *://stackoverflow.com/c/*
// @exclude     *://chat.stackexchange.com/*
// @exclude     *://chat.stackoverflow.com/*
// @exclude     *://chat.meta.stackexchange.com/*
// @exclude     *://stackexchange.com/*
// @exclude     *://api.stackexchange.com/*
// @exclude     *://data.stackexchange.com/*
// @exclude     *://winterbash*.stackexchange.com/*
// @grant       none
// ==/UserScript==
/* global $ */

(function() {
  "use strict";
  
  let search = $("#search input")[0];
  let params = new URLSearchParams(window.location.search);
  switch (params.get('tab')) {
    case 'answers':
      search.value += ' is:a';
      break;
    case 'bookmarks':
      search.value = search.value.replace('user:', 'inbookmarks:');
      break;
    case 'questions':
      search.value += ' is:q';
      break;
    case 'tags':
      // only works for own tags
      if (search.value == 'user:' + StackExchange.options.user.userId) {
        search.value = 'intags:mine';
      }
      break;
  }
})();

Here is a simple userscript that you could use until this functionality is implemented:

// ==UserScript==
// @name        Stack Exchange, Improved Search From Profile
// @author      Glorfindel
// @version     0.1
// @match       *://*.stackexchange.com/users/*
// @match       *://*.stackoverflow.com/users/*
// @match       *://*.superuser.com/users/*
// @match       *://*.serverfault.com/users/*
// @match       *://*.askubuntu.com/users/*
// @match       *://*.stackapps.com/users/*
// @match       *://*.mathoverflow.net/users/*
// @exclude     *://stackoverflow.com/c/*
// @exclude     *://chat.stackexchange.com/*
// @exclude     *://chat.stackoverflow.com/*
// @exclude     *://chat.meta.stackexchange.com/*
// @exclude     *://stackexchange.com/*
// @exclude     *://api.stackexchange.com/*
// @exclude     *://data.stackexchange.com/*
// @exclude     *://winterbash*.stackexchange.com/*
// @grant       none
// ==/UserScript==
/* global $ */

(function() {
  "use strict";
  
  let search = $("#search input")[0];
  let params = new URLSearchParams(window.location.search);
  switch (params.get('tab')) {
    case 'answers':
      search.value += ' is:a';
      break;
    case 'bookmarks':
      search.value = search.value.replace('user:', 'inbookmarks:');
      break;
    case 'questions':
      search.value += ' is:q';
      break;
    case 'tags':
      // only works for own tags
      if (search.value == 'user:' + StackExchange.options.user.userId) {
        search.value = 'intags:mine';
      }
      break;
  }
})();

Here is a simple userscript that you could use until this functionality is implemented. It works on all user profiles (except for the Tags tab, that is limited to your own user ID) - if you visit my profile, the search bar will be prepopulated with user:295232 is:a.

// ==UserScript==
// @name        Stack Exchange, Improved Search From Profile
// @author      Glorfindel
// @version     0.1
// @match       *://*.stackexchange.com/users/*
// @match       *://*.stackoverflow.com/users/*
// @match       *://*.superuser.com/users/*
// @match       *://*.serverfault.com/users/*
// @match       *://*.askubuntu.com/users/*
// @match       *://*.stackapps.com/users/*
// @match       *://*.mathoverflow.net/users/*
// @exclude     *://stackoverflow.com/c/*
// @exclude     *://chat.stackexchange.com/*
// @exclude     *://chat.stackoverflow.com/*
// @exclude     *://chat.meta.stackexchange.com/*
// @exclude     *://stackexchange.com/*
// @exclude     *://api.stackexchange.com/*
// @exclude     *://data.stackexchange.com/*
// @exclude     *://winterbash*.stackexchange.com/*
// @grant       none
// ==/UserScript==
/* global $ */

(function() {
  "use strict";
  
  let search = $("#search input")[0];
  let params = new URLSearchParams(window.location.search);
  switch (params.get('tab')) {
    case 'answers':
      search.value += ' is:a';
      break;
    case 'bookmarks':
      search.value = search.value.replace('user:', 'inbookmarks:');
      break;
    case 'questions':
      search.value += ' is:q';
      break;
    case 'tags':
      // only works for own tags
      if (search.value == 'user:' + StackExchange.options.user.userId) {
        search.value = 'intags:mine';
      }
      break;
  }
})();
added 42 characters in body
Source Link
Glorfindel Mod
  • 255.6k
  • 61
  • 638
  • 1.3k

Here is a simple userscriptuserscript that you could use until this functionality is implemented:

// ==UserScript==
// @name        Stack Exchange, Improved Search From Profile
// @author      Glorfindel
// @version     0.1
// @match       *://*.stackexchange.com/users/*
// @match       *://*.stackoverflow.com/users/*
// @match       *://*.superuser.com/users/*
// @match       *://*.serverfault.com/users/*
// @match       *://*.askubuntu.com/users/*
// @match       *://*.stackapps.com/users/*
// @match       *://*.mathoverflow.net/users/*
// @exclude     *://stackoverflow.com/c/*
// @exclude     *://chat.stackexchange.com/*
// @exclude     *://chat.stackoverflow.com/*
// @exclude     *://chat.meta.stackexchange.com/*
// @exclude     *://stackexchange.com/*
// @exclude     *://api.stackexchange.com/*
// @exclude     *://data.stackexchange.com/*
// @exclude     *://winterbash*.stackexchange.com/*
// @grant       none
// ==/UserScript==
/* global $ */

(function() {
  "use strict";
  
  let search = $("#search input")[0];
  let params = new URLSearchParams(window.location.search);
  switch (params.get('tab')) {
    case 'answers':
      search.value += ' is:a';
      break;
    case 'bookmarks':
      search.value = search.value.replace('user:', 'inbookmarks:');
      break;
    case 'questions':
      search.value += ' is:q';
      break;
    case 'tags':
      // only works for own tags
      if (search.value == 'user:' + StackExchange.options.user.userId) {
        search.value = 'intags:mine';
      }
      break;
  }
})();

Here is a simple userscript that you could use until this functionality is implemented:

// ==UserScript==
// @name        Stack Exchange, Improved Search From Profile
// @author      Glorfindel
// @version     0.1
// @match       *://*.stackexchange.com/users/*
// @match       *://*.stackoverflow.com/users/*
// @match       *://*.superuser.com/users/*
// @match       *://*.serverfault.com/users/*
// @match       *://*.askubuntu.com/users/*
// @match       *://*.stackapps.com/users/*
// @match       *://*.mathoverflow.net/users/*
// @exclude     *://stackoverflow.com/c/*
// @exclude     *://chat.stackexchange.com/*
// @exclude     *://chat.stackoverflow.com/*
// @exclude     *://chat.meta.stackexchange.com/*
// @exclude     *://stackexchange.com/*
// @exclude     *://api.stackexchange.com/*
// @exclude     *://data.stackexchange.com/*
// @exclude     *://winterbash*.stackexchange.com/*
// @grant       none
// ==/UserScript==
/* global $ */

(function() {
  "use strict";
  
  let search = $("#search input")[0];
  let params = new URLSearchParams(window.location.search);
  switch (params.get('tab')) {
    case 'answers':
      search.value += ' is:a';
      break;
    case 'bookmarks':
      search.value = search.value.replace('user:', 'inbookmarks:');
      break;
    case 'questions':
      search.value += ' is:q';
      break;
    case 'tags':
      // only works for own tags
      if (search.value == 'user:' + StackExchange.options.user.userId) {
        search.value = 'intags:mine';
      }
      break;
  }
})();

Here is a simple userscript that you could use until this functionality is implemented:

// ==UserScript==
// @name        Stack Exchange, Improved Search From Profile
// @author      Glorfindel
// @version     0.1
// @match       *://*.stackexchange.com/users/*
// @match       *://*.stackoverflow.com/users/*
// @match       *://*.superuser.com/users/*
// @match       *://*.serverfault.com/users/*
// @match       *://*.askubuntu.com/users/*
// @match       *://*.stackapps.com/users/*
// @match       *://*.mathoverflow.net/users/*
// @exclude     *://stackoverflow.com/c/*
// @exclude     *://chat.stackexchange.com/*
// @exclude     *://chat.stackoverflow.com/*
// @exclude     *://chat.meta.stackexchange.com/*
// @exclude     *://stackexchange.com/*
// @exclude     *://api.stackexchange.com/*
// @exclude     *://data.stackexchange.com/*
// @exclude     *://winterbash*.stackexchange.com/*
// @grant       none
// ==/UserScript==
/* global $ */

(function() {
  "use strict";
  
  let search = $("#search input")[0];
  let params = new URLSearchParams(window.location.search);
  switch (params.get('tab')) {
    case 'answers':
      search.value += ' is:a';
      break;
    case 'bookmarks':
      search.value = search.value.replace('user:', 'inbookmarks:');
      break;
    case 'questions':
      search.value += ' is:q';
      break;
    case 'tags':
      // only works for own tags
      if (search.value == 'user:' + StackExchange.options.user.userId) {
        search.value = 'intags:mine';
      }
      break;
  }
})();
Source Link
Glorfindel Mod
  • 255.6k
  • 61
  • 638
  • 1.3k

Here is a simple userscript that you could use until this functionality is implemented:

// ==UserScript==
// @name        Stack Exchange, Improved Search From Profile
// @author      Glorfindel
// @version     0.1
// @match       *://*.stackexchange.com/users/*
// @match       *://*.stackoverflow.com/users/*
// @match       *://*.superuser.com/users/*
// @match       *://*.serverfault.com/users/*
// @match       *://*.askubuntu.com/users/*
// @match       *://*.stackapps.com/users/*
// @match       *://*.mathoverflow.net/users/*
// @exclude     *://stackoverflow.com/c/*
// @exclude     *://chat.stackexchange.com/*
// @exclude     *://chat.stackoverflow.com/*
// @exclude     *://chat.meta.stackexchange.com/*
// @exclude     *://stackexchange.com/*
// @exclude     *://api.stackexchange.com/*
// @exclude     *://data.stackexchange.com/*
// @exclude     *://winterbash*.stackexchange.com/*
// @grant       none
// ==/UserScript==
/* global $ */

(function() {
  "use strict";
  
  let search = $("#search input")[0];
  let params = new URLSearchParams(window.location.search);
  switch (params.get('tab')) {
    case 'answers':
      search.value += ' is:a';
      break;
    case 'bookmarks':
      search.value = search.value.replace('user:', 'inbookmarks:');
      break;
    case 'questions':
      search.value += ' is:q';
      break;
    case 'tags':
      // only works for own tags
      if (search.value == 'user:' + StackExchange.options.user.userId) {
        search.value = 'intags:mine';
      }
      break;
  }
})();