उनके प्रदर्शन विशेषता को संशोधित करके छिपे हुए रूप तत्वों को प्रकट करें


2

मैं फ़ायरफ़ॉक्स के लिए एक बुकमार्कलेट कैसे बना सकता हूं जो कि छिपे हुए तत्वों को दिखाता है display: none;?

जवाबों:


2

अगर मैं सही तरीके से समझूं, तो आप सभी formऔर संबंधित तत्वों को सेट करना चाहते हैं displayयदि आवश्यक हो तो विशेषता को बदलकर दिखाई दे । आप इसे जावास्क्रिप्ट और jQuery के साथ कर सकते हैं।


Greasemonkey userscript:

// ==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()})};});

( बेन अल्मन के jQuery बुकमार्कलेट टूल का उपयोग करके उत्पन्न )

हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.