{"id":6681,"date":"2021-01-11T10:34:46","date_gmt":"2021-01-11T01:34:46","guid":{"rendered":"http:\/\/54.178.87.26\/examples\/"},"modified":"2021-10-07T10:56:30","modified_gmt":"2021-10-07T01:56:30","slug":"examples","status":"publish","type":"page","link":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/702\/customization\/ui-scripts\/examples\/","title":{"rendered":"UI \u30b9\u30af\u30ea\u30d7\u30c8\uff1a\u30b5\u30f3\u30d7\u30eb"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.4.2&#8243;][et_pb_row _builder_version=&#8221;4.4.2&#8243;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.4.2&#8243;][et_pb_text admin_label=&#8221;Standard Text&#8221; _builder_version=&#8221;4.4.2&#8243; width=&#8221;100%&#8221;]<\/p>\n<h1 id=\"ui_\u30b9\u30af\u30ea\u30d7\u30c8_\u30b5\u30f3\u30d7\u30eb\" class=\"sectionedit1\">UI \u30b9\u30af\u30ea\u30d7\u30c8\uff1a\u30b5\u30f3\u30d7\u30eb<\/h1>\n<div class=\"level1\">\n<p>\u3053\u306e\u30da\u30fc\u30b8\u3067\u306f\u3001UI \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3057\u3066 TestRail \u306e\u30e6\u30fc\u30b6\u30fc \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u65b9\u6cd5\u3092\u3044\u304f\u3064\u304b\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5148\u306b UI \u30b9\u30af\u30ea\u30d7\u30c8\u306b\u95a2\u3059\u308b\u80cc\u666f\u60c5\u5831\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u308b\u00a0<a class=\"wikilink1\" title=\"testrail-custom:uiscripts-introduction\" href=\"\/customization\/ui-scripts\/introduction\" target=\"_blank\" rel=\"noopener\">UI \u30b9\u30af\u30ea\u30d7\u30c8\uff1a\u306f\u3058\u3081\u306b<\/a>\u3092\u8aad\u3093\u3067\u304a\u304f\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Note&#8221; _builder_version=&#8221;4.4.2&#8243; background_color=&#8221;#ffffdd&#8221; custom_padding=&#8221;4px|4px|2px|6px|false|false&#8221; hover_enabled=&#8221;0&#8243; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#E1E163&#8243;]<\/p>\n<p>\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u306b\u52a0\u3048\u3066\u3001\u30d1\u30d6\u30ea\u30c3\u30af\u306a GitHub \u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30b5\u30f3\u30d7\u30eb UI \u30b9\u30af\u30ea\u30d7\u30c8\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u307e\u307e\u3067\u3001\u3042\u308b\u3044\u306f\u7c21\u5358\u306a\u5909\u66f4\u3060\u3051\u3067\u304a\u5ba2\u69d8\u306e\u30cb\u30fc\u30ba\u306b\u5408\u3046\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u898b\u3064\u304b\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u30ea\u30dd\u30b8\u30c8\u30ea\u306f<a href=\"https:\/\/github.com\/gurock\/testrail-custom\/tree\/master\/user-submitted\/ui-scripts\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.4.2&#8243;][et_pb_row _builder_version=&#8221;4.4.2&#8243;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.4.2&#8243;][et_pb_text admin_label=&#8221;Standard Text&#8221; _builder_version=&#8221;4.4.2&#8243; width=&#8221;100%&#8221;]<\/p>\n<h2 id=\"\u7ba1\u7406\u30da\u30fc\u30b8\u3092\u5f37\u8abf\u8868\u793a\u3059\u308b\" class=\"sectionedit2\">\u7ba1\u7406\u30da\u30fc\u30b8\u3092\u5f37\u8abf\u8868\u793a\u3059\u308b<\/h2>\n<div class=\"level2\">\n<p>\u73fe\u5728\u306e\u30da\u30fc\u30b8\u304c\u7ba1\u7406\u30da\u30fc\u30b8\u306e\u4e00\u90e8\u3067\u3042\u308b\u304b\u3069\u3046\u304b\u3092\u3001\u305f\u3068\u3048\u3070\u30bf\u30a4\u30c8\u30eb \u30d0\u30fc\u306e\u80cc\u666f\u8272\u3092\u5909\u3048\u308b\u306a\u3069\u3057\u3066\u8996\u899a\u7684\u306b\u793a\u3059\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u4fbf\u5229\u3067\u3057\u3087\u3046\u3002\u3053\u308c\u306f\u3001CSS \u3060\u3051\u3092\u4f7f\u7528\u3059\u308b\u6bd4\u8f03\u7684\u5358\u7d14\u306a UI \u30b9\u30af\u30ea\u30d7\u30c8\u3067\u7c21\u5358\u306b\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>TestRail 4.0 \u4ee5\u964d\u306e\u5834\u5408\u306f\u3001\u6b21\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Code Sample&#8221; _builder_version=&#8221;4.4.2&#8243; background_color=&#8221;#ECF6FF&#8221; custom_padding=&#8221;4px|4px|2px|6px|false|false&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#C7DBEF&#8221;]<\/p>\n<pre class=\"code\">name: Highlight administration pages\ndescription: Changes the background of the user menu on admin pages\nauthor: Gurock Software\nversion: 1.0\nincludes: ^admin\n\ncss:\n#top .top-panel {\n     background-color: #8B0000;\n}<\/pre>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Standard Text&#8221; _builder_version=&#8221;4.4.2&#8243; width=&#8221;100%&#8221;]<\/p>\n<p>TestRail 3.x\u3067\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u306f\u5c11\u3057\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Code Sample&#8221; _builder_version=&#8221;4.4.2&#8243; background_color=&#8221;#ECF6FF&#8221; custom_padding=&#8221;4px|4px|2px|6px|false|false&#8221; hover_enabled=&#8221;0&#8243; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#C7DBEF&#8221;]<\/p>\n<pre class=\"code\">name: Highlight administration pages\ndescription: Changes the background of the user menu on admin pages\nauthor: Gurock Software\nversion: 1.0\nincludes: ^admin\n\ncss:\n#topBar {\n     background-color: #8B0000;\n}<\/pre>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.4.2&#8243;][et_pb_row _builder_version=&#8221;4.4.2&#8243;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.4.2&#8243;][et_pb_text admin_label=&#8221;Standard Text&#8221; _builder_version=&#8221;4.4.2&#8243; width=&#8221;100%&#8221;]<\/p>\n<h2 id=\"\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af_\u30ea\u30f3\u30af\u306e\u5909\u66f4_testrail_3x_\u306e\u307f\" class=\"sectionedit3\">\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af \u30ea\u30f3\u30af\u306e\u5909\u66f4 (TestRail 3.x \u306e\u307f)<\/h2>\n<div class=\"level2\">\n<p>\u30ea\u30f3\u30af\u306e\u5834\u6240\u3092\u5909\u66f4\u3057\u305f\u308a\u3001\u30e6\u30fc\u30b6\u30fc \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304b\u3089\u30ea\u30f3\u30af\u3092\u5b8c\u5168\u306b\u524a\u9664\u3059\u308b\u306a\u3069\u3001TestRail \u306e\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af \u30ea\u30f3\u30af\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u305f\u3044\u30b1\u30fc\u30b9\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u6b21\u306e\u30b5\u30f3\u30d7\u30eb\u306f\u3001UI \u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3053\u308c\u3092\u5b9f\u73fe\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Removing the link&#8221; _builder_version=&#8221;4.4.2&#8243; width=&#8221;100%&#8221;]<\/p>\n<h3 id=\"\u30ea\u30f3\u30af\u306e\u524a\u9664\" class=\"sectionedit4\">\u30ea\u30f3\u30af\u306e\u524a\u9664<\/h3>\n<div class=\"level3\">\n<p>UI \u30b9\u30af\u30ea\u30d7\u30c8\u306e JavaScript \u90e8\u5206\u3067 jQuery \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u7c21\u5358\u306b\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af \u30ea\u30f3\u30af\u3092\u524a\u9664\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/div>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Code Sample&#8221; _builder_version=&#8221;4.4.2&#8243; background_color=&#8221;#ECF6FF&#8221; custom_padding=&#8221;4px|4px|2px|6px|false|false&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#C7DBEF&#8221;]<\/p>\n<pre class=\"code\">name: Remove feedback link\ndescription: Removes the feedback link from the user menu\nauthor: Gurock Software\nversion: 1.0\nincludes: \nexcludes: \n\njs:\n$(document).ready(\n     function() {\n          $('#userMenu ul li:eq(1)').remove();\n     }\n);<\/pre>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Standard Text&#8221; _builder_version=&#8221;4.4.2&#8243; width=&#8221;100%&#8221;]<\/p>\n<p>\u3053\u308c\u306f\u3001jQuery \u306e\u30bb\u30ec\u30af\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u3066\u30da\u30fc\u30b8\u306e\u7279\u5b9a\u306e\u8981\u7d20\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3059\u826f\u3044\u4f8b\u3067\u3059\u3002\u3053\u306e\u30bb\u30ec\u30af\u30bf\u30fc\u306e\u69cb\u6587\u306f\u3001\u300c#userMenu \u306e\u756a\u53f7\u306a\u3057\u30ea\u30b9\u30c8\u306e 2 \u756a\u76ee\u306e\u8981\u7d20 (0 \u304b\u3089\u30ab\u30a6\u30f3\u30c8\u3059\u308b) \u3092\u9078\u629e\u3059\u308b\u300d\u3068\u3044\u3046\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Changing the target URL&#8221; _builder_version=&#8221;4.4.2&#8243; width=&#8221;100%&#8221; hover_enabled=&#8221;0&#8243;]<\/p>\n<h3 id=\"\u30bf\u30fc\u30b2\u30c3\u30c8_url_\u3092\u5909\u66f4\u3059\u308b\" class=\"sectionedit5\">\u30bf\u30fc\u30b2\u30c3\u30c8 URL \u3092\u5909\u66f4\u3059\u308b<\/h3>\n<div class=\"level3\">\n<p>\u5225\u306e\u9078\u629e\u80a2\u3068\u3057\u3066\u3001\u516c\u5f0f\u306e TestRail \u30b5\u30dd\u30fc\u30c8 \u30d5\u30a9\u30fc\u30e9\u30e0\u306e\u4ee3\u308f\u308a\u306b\u5185\u90e8\u30d5\u30a9\u30fc\u30e9\u30e0\u307e\u305f\u306f\u30d8\u30eb\u30d7 \u30c7\u30b9\u30af \u30da\u30fc\u30b8\u3092\u6307\u3059\u3088\u3046\u306b\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af \u30ea\u30f3\u30af\u306e\u30ea\u30f3\u30af\u5148\u3092\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/p>\n<\/div>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Code Sample&#8221; _builder_version=&#8221;4.4.2&#8243; background_color=&#8221;#ECF6FF&#8221; custom_padding=&#8221;4px|4px|2px|6px|false|false&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#C7DBEF&#8221;]<\/p>\n<pre class=\"code\">name: Change feedback link\ndescription: Changes the target URL of the feedback link\nauthor: Gurock Software\nversion: 1.0\nincludes: \nexcludes: \n\njs:\n$(document).ready(\n     function() {\n\tdocument.querySelector('.top-menu-highlight').classList.remove('dropdownLink');\n\tdocument.querySelector('.top-menu-highlight').href = 'http:\/\/internal-feedback-url;\n     }\n);<\/pre>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section][et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.4.2&#8243;][et_pb_row _builder_version=&#8221;4.4.2&#8243;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.4.2&#8243;][et_pb_text admin_label=&#8221;Standard Text&#8221; _builder_version=&#8221;4.4.2&#8243; width=&#8221;100%&#8221;]<\/p>\n<h2 id=\"\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u30b0\u30e9\u30d5\u3092\u975e\u8868\u793a\u306b\u3059\u308b\" class=\"sectionedit6\">\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u30b0\u30e9\u30d5\u3092\u975e\u8868\u793a\u306b\u3059\u308b<\/h2>\n<div class=\"level2\">\n<p>\u591a\u304f\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u4f5c\u696d\u3057\u3066\u3044\u308b\u3068\u304d\u3001TestRail \u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u3088\u308a\u591a\u304f\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4e00\u5ea6\u306b\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u3001\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3 \u30c1\u30e3\u30fc\u30c8\u3092\u975e\u8868\u793a\u306b\u3059\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002\u4e0b\u8a18\u306e\u5404 UI \u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3001\u30da\u30fc\u30b8\u304b\u3089\u30b0\u30e9\u30d5\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<p>TestRail 4.0 \u4ee5\u964d\u306e\u5834\u5408\u306f\u3001\u6b21\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Code Sample&#8221; _builder_version=&#8221;4.4.2&#8243; background_color=&#8221;#ECF6FF&#8221; custom_padding=&#8221;4px|4px|2px|6px|false|false&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#C7DBEF&#8221;]<\/p>\n<pre class=\"code\">name: Hide dashboard chart\ndescription: Hides the chart on the dashboard page\nauthor: Gurock Software\nversion: 1.0\nincludes: ^dashboard\nexcludes:\n\njs:\n$(document).ready(\n     function() {\n          $('.chart-line:first').hide();\n     }\n);<\/pre>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Standard Text&#8221; _builder_version=&#8221;4.4.2&#8243; width=&#8221;100%&#8221;]<\/p>\n<p>TestRail 3.x\u3067\u306f\u3001\u30b5\u30f3\u30d7\u30eb\u306f\u5c11\u3057\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Code Sample&#8221; _builder_version=&#8221;4.4.2&#8243; background_color=&#8221;#ECF6FF&#8221; custom_padding=&#8221;4px|4px|2px|6px|false|false&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#C7DBEF&#8221;]<\/p>\n<pre class=\"code\">name: Hide dashboard chart\ndescription: Hides the chart on the dashboard page\nauthor: Gurock Software\nversion: 1.0\nincludes: ^dashboard\nexcludes:\n\njs:\n$(document).ready(\n     function() {\n          $('.lineChart:first').hide();\n     }\n);<\/pre>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; _builder_version=&#8221;4.4.2&#8243;][et_pb_row _builder_version=&#038;#822 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":6737,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-6681","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/702\/wp-json\/wp\/v2\/pages\/6681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/702\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/702\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/702\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/702\/wp-json\/wp\/v2\/comments?post=6681"}],"version-history":[{"count":6,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/702\/wp-json\/wp\/v2\/pages\/6681\/revisions"}],"predecessor-version":[{"id":13506,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/702\/wp-json\/wp\/v2\/pages\/6681\/revisions\/13506"}],"up":[{"embeddable":true,"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/702\/wp-json\/wp\/v2\/pages\/6737"}],"wp:attachment":[{"href":"https:\/\/docs.testrail.techmatrix.jp\/testrail\/docs\/702\/wp-json\/wp\/v2\/media?parent=6681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}