您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add direct links to study pages on Prolific listings
// ==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 }); })();