মিডিয়াউইকি:Gadget-Without text.js
টীকা: সংরক্ষণ করার পর, পরিবর্তনসমূহ তৎক্ষণাৎ নাও দেখাতে পারে। আপনার ব্রাউজারের ক্যাশ কিভাবে এড়াবেন তা জানতে এখানে ক্লিক করুন।
- ফায়ারফক্স / সাফারি: Shift ধরে রাখা অবস্থায়পুনঃলোড করুন-এ ক্লিক করুন, অথবা Ctrl-F5 বা Ctrl-R (ম্যাক-এ ⌘-R) চাপুন
- গুগল ক্রোম: Ctrl-Shift-R (ম্যাক-এ ⌘-Shift-R) চাপুন
- ইন্টারনেট এক্সপ্লোরার: Ctrl ধরে রাখা অবস্থায় Refresh-এ ক্লিক করুন, অথবা Ctrl-F5 চাপুন
- অপেরা: মেনু → ব্যবস্থাপনাসমূহ-এ যান (ম্যাকে অপেরা → পছন্দসমূহ) এবং এরপর গোপনীয়তা ও সুরক্ষা → ব্রাউজিং-এর তথ্য পরিষ্কার করুন → ক্যাশে করা ছবি ও ফাইলগুলি।
অন্যান্য ব্রাউজার সম্পর্কে বিশদ নির্দেশাবলীর জন্য, উইকিপিডিয়া:আপনার ক্যাশে বাইপাস করুন দেখুন।
/*
One-click "Without text"
Tagging an empty page as "Without text" potentially requires
Clearing the header box (of the index-specified default)
Clearing the edit box (of any spurious OCR)
Clearing the footer box (of the index-specified default)
Clicking the "without text" radio box
Clicking "Save"
This script performs all of these tasks upon clicking of the "without text" radio box
Users can add this to their scripts by editing [[Special:MyFiles/common.js]] and adding the following line
mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:Gadget-Without text.js&action=raw&ctype=text/javascript')
*/
$(function(){
qualityContainer = document.getElementById('wpQuality-container');
if (qualityContainer == null) return;
quality0 = qualityContainer.getElementsByClassName('quality0')
withouttext = quality0[0].childNodes[0];
withouttext.addEventListener('click', function () {
document.getElementsByName('wpTextbox1')[0].value = "";
document.getElementsByName('wpHeaderTextbox')[0].value = "";
document.getElementsByName('wpFooterTextbox')[0].value = "";
document.getElementsByName('wpSave')[0].click();
});
});