표시 속성을 수정하여 숨겨진 양식 요소 표시

표시 속성을 수정하여 숨겨진 양식 요소 표시

로 숨겨진 양식 요소를 표시하는 Firefox용 북마크릿을 어떻게 만들 수 있나요 display: none;?

답변1

내가 올바르게 이해했다면 필요한 경우 속성을 form변경하여 모든 요소와 관련 요소가 표시되도록 설정하고 싶습니다 . displayJavaScript와 jQuery를 사용하여 이를 수행할 수 있습니다.


그리스몽키사용자스크립트:

// ==UserScript==
// @name        Show Form Elements
// @namespace   http://igalvez.net
// @description Modifies form elements' display attributes to reveal them.
// @version     1.0
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// ==/UserScript==

var elements = ['form', 'input', 'textarea', 'label', 'fieldset', 'legend',
                'select', 'optgroup', 'option', 'button'];
for (var i = 0; i < elements.length; i++)
{
    $(elements[i]).each(
        function()
        {
            $(this).show();
        }
    );
}

북마크릿 URL:

javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.3.2",function($,L){var%20elements=["form","input","textarea","label","fieldset","legend","select","optgroup","option","button"];for(var%20i=0;i<elements.length;i++){$(elements[i]).each(function(){$(this).show()})};});

(다음을 사용하여 생성됨Ben Alman의 jQuery 북마크릿도구)

관련 정보