Prolific Study Links

Add direct links to study pages on Prolific listings

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Prolific Study Links
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Add direct links to study pages on Prolific listings
// @author       Lintilla
// @match        https://app.prolific.com/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    function addStudyLinks() {
        const studyItems = document.querySelectorAll('li[data-testid^="study-"]');
        studyItems.forEach(item => {
            const testid = item.getAttribute('data-testid');
            const studyId = testid.replace('study-', '');
            const titleEl = item.querySelector('[data-testid="title"]');
            if (titleEl && !titleEl.querySelector('.prolific-link')) {
                const link = document.createElement('a');
                link.href = `https://app.prolific.com/studies/${studyId}`;
                link.textContent = '🔗 Open study page';
                link.target = '_blank';
                link.className = 'prolific-link';
                link.style.marginLeft = '8px';
                link.style.fontSize = '0.9em';
                titleEl.appendChild(link);
            }
        });
    }
    addStudyLinks();
    const observer = new MutationObserver(addStudyLinks);
    observer.observe(document.body, { childList: true, subtree: true });
})();