11

Is there a list of sponsored tags?

5
  • 2
    It's on the to-do list.
    – jonrsharpe
    Jul 19, 2016 at 9:31
  • 2
    @jonrsharpe the post linked to by the tag wiki is 6-8 years old ...
    – Glorfindel
    Jul 19, 2016 at 10:00
  • Out of curiosity, what is your interest in seeing a list of sponsored tags?
    – stevvve
    Jul 19, 2016 at 10:00
  • 5
    Out of curiosity :) Jul 19, 2016 at 14:25
  • Lol. As the "to-do list" promise was made in 2009 and the person making that promise hasn't been seen for more than a decade I think it is probably time to remove that from the Wiki Jan 4, 2022 at 19:44

1 Answer 1

14

Until this gets implemented or be available on either SEDE or the StackAPI, this is the list of sponsored tags as of today. At the end of the list you find the userscript to create this list.








































































































































You can let the following userscript hammer for over an hour on the /tags page and grab the final result from the Developer Console of your browser. This is tested in Chrome with Tamper Monkey.

// ==UserScript==
// @name         sponsered tags
// @namespace    https://stackoverflow.com/users/578411/rene
// @version      0.1
// @description  list sponsered tags
// @author       rene
// @match        *://stackoverflow.com/tags*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var page = 1,
        timer;

    timer = setInterval(function () {
        var xhr = new XMLHttpRequest();
        xhr.onreadystatechange = function () {
            var doc,
                links,
                a,
                i;
            if (xhr.readyState == 4) {
                if (xhr.status === 200) {
                    page++;
                    if (page > 1714) {
                        clearInterval(timer);    
                    }
                    doc = xhr.response;
                    // all tags have a link with a specific class name
                    links = doc.getElementsByClassName('post-tag');
                    for(var i=0; i < links.length; i = i +1) {
                        a = links[i];
                        // if those links have an image tag, they are sponsered
                        if (a.children.length > 0) {
                            console.log('[tag:' + a.textContent + ']');
                        }
                    }

                } else {
                    console.log(xhr.status);
                    clearInterval(timer);
                }
            }

        };
        xhr.responseType = 'document';
        xhr.open('GET','https://stackoverflow.com/tags?tab=name&page=' + page);
        xhr.send(null);
    }, 2500);


})();
3
  • page > 1346 needs manual adjustment ... because I'm lazy ...
    – rene
    Jan 5, 2020 at 9:12
  • The list is outdated, also the script doesn't work anymore (from the console on chrome) I have no results and if I try to run it multiple times, I got "Too many requests" and I can't acces stackoverflow for a few minutes.
    – Mickael B.
    May 5, 2020 at 20:11
  • @MickaelB. it still works for me if I open it on "stackoverflow.com/tags" but as it sorts on name it might take some time before you find Facebook. I've increased the timeout to 2500 (2,5 seconds per page) so it is less likely to put you in an IP ban but reloading it several times might still trip it. Keep in mind this has to run for at least 1714 X 2,5 seconds to find you all tags. The scripts stays silent in general, but does spit out an message if in its readystate it hits something that is not a success code of 200. I've tested this in Chrome with TamperMonkey.
    – rene
    May 6, 2020 at 7:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .