mmmturkeybacon Survey Row Highlighter

Highlights rows in surveys to make it easier to see

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        mmmturkeybacon Survey Row Highlighter
// @author      mmmturkeybacon
// @description Highlights rows in surveys to make it easier to see
//              which question you are answering.
// @namespace   http://userscripts.org/users/523367
// @match       http://*.qualtrics.com/*
// @match       https://*.qualtrics.com/*
// @match       http://*.surveymonkey.com/*
// @match       https://*.surveymonkey.com/*
// @match       https://docs.google.com/forms*
// @version     0.9
// @grant       none
// ==/UserScript==

/* based on the following stackoverflow snippets:
 *http://stackoverflow.com/questions/4007353/how-to-highlight-table-row-on-hover-using-css-only
 *http://stackoverflow.com/questions/4847313/dynamically-add-css-to-page-via-javascript
 */
var style = document.createElement('style')
style.type = 'text/css'
style.innerHTML = 'tr.ChoiceRow:hover {background-color: lightyellow;}'; // qualtrics
style.innerHTML += ' tr.matrixRow:hover {background-color: lightyellow;}'; // surveymonkey
style.innerHTML += ' tr.matrixAltRow:hover {background-color: lightyellow;}'; // survey monkey
style.innerHTML += ' tr.ss-gridrow:hover {background-color: lightyellow;}'; // google
document.getElementsByTagName('head')[0].appendChild(style)

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址