Mturk Larger Radio Buttons and Checkboxes

Makes radio buttons and checkboxes larger. Applies to only certain survey related pages and Mturk itself.

目前为 2015-08-04 提交的版本。查看 最新版本

// ==UserScript==
// @author      Mturk Nerds
// @name        Mturk Larger Radio Buttons and Checkboxes
// @version     1.47
// @descrption  Updates the size of bubbles on surveys to a larger size. Forked and updated by swole_hamster
// @license     Simplified BSD
// @namespace   https://greasyfork.org/users/2291
// @description Makes radio buttons and checkboxes larger. Applies to only certain survey related pages and Mturk itself.
// @include       https://*.mturk.com/mturk/preview*
// @include       https://*.mturk.com/mturk/accept*
// @include       https://*.mturk.com/mturk/continue*
// @include       https://*.mturk.com/mturk/submit*
// @include       https://*.mturk.com/mturk/return*
// @include       https://*.mturkcontent.com/dynamic/hit?*
// @include       https://*.amazonaws.com/mturk_bulk/hits*
// @include        https://www.mturk.com/mturk/dashboard
// @include	   http://*.qualtrics.com/*
// @include	   https://*.qualtrics.com/*
// @include        https://*.*.qualtrics.com/*
// @include        http://*.*.qualtrics.com/*
// @include        http://*.surveygizmo.com/*
// @include        https://*.surveygizmo.com/*
// @include        https://docs.google.com/forms/*
// @include        https://*.surveymonkey.com/*
// @include        https://*.soscisurvey.de/*
// @include        https://*.vennliapp.com/*
// @include        https://*.unipark.de/*
// @include        http://*.unipark.de/*
// @include        https://unipark.de/*
// @include        http://unipark.de/*
// @include        http://*.*.*.edu/*
// @include        https://*.*.*.edu/*
// @include        http://*.*.edu/*
// @include        https://*.*.edu/*
// @include        http://*.*.*.ca/*
// @include        https://*.*.*.ca/*
// @include        http://*.*.ca/*
// @include        https://*.*.ca/*
// @include        http://www.marshlabduke.com/*
// @include        https://*.typeform.com/*
// @include        http://surveys*.surveyanalytics.com/*
// @include        http://*.cspurdue.com/*
// @include        https://*.kwiksurveys.com/*
// @include        https://*.wonderliconline.com/*
// @include        http://*.lab42.com/*
// @include        http://turkitron.com/*
// @include        http://www.bbk.ac.uk/psychology/*
// @include        http://www.psy.de/
// @include        http://sgiz.mobi/*
// @include        http://www.consumerbehaviorlab.com/*
// @include        https://www.psychdata.com/*
// @include        https://www.isurvey.soton.ac.uk/*
// @include        https://www.pwl2.uni-koeln.de/*
// @include        http://survey.psy.unipd.it/*
// @include        https://www.predikkta.com/*
// @include        https://*.userzoom.com/*
// @include        https://www.vopspsy.ugent.be/*
// @include        http://crsi.byethost33.com/*
// @include        https://www.psychdata.com/*
// @include        http://hospitalityexperiments.net/*
// @include        http://umfragen.ise.tu-darmstadt.de/*
// @include        http://www.dise-online.net/*
// @include        https://www.descil.ethz.ch/apps/mturk/*
// @include        https://survey.ulb.ac.be/limesurvey/*
// @include        https://www.tfaforms.com/*
// @include        http://pcmle.rhul.ac.uk/experiment1/*
// @include        https://*.shinyapps.io/*
// @include        https://mutual-science.org/*
// @include        http://*/TurkGate/*
// @include        http://jbfreeman.net/webmt/*
// @include        http://*.fluidsurveys.com/*
// @include        https://gate.aon.com/*
// @include        https://www.google.com/*
// @include        http://www.google.com/*
// @require     http://code.jquery.com/jquery-latest.min.js
// ==/UserScript==

/* Function that injects CSS rules */
function injectStyles( rule ) {
    var div = $( '<div />', {
        html: '&shy;<style>' + rule + '</style>'
    } ).appendTo( 'body' );
}

/*Individual calls to add styles */
injectStyles( 'input[type=radio] { width: 1.5em; height: 1.5em;}' );
injectStyles( 'input[type=checkbox] { width: 1.5em; height: 1.5em;}' );