مدیاویکی:Gadget-MediawikiEditSummary.js: نوسخهلر آراسینداکی فرق
محتوای حذفشده محتوای افزودهشده
E THP (دانیشیق | چالیشمالار) صفحهنی ' // File:User:He7d3r/Tools/DebugModeToggle.js (workaround for phab:T35355) /** * Add a toggle for debug mode to the sidebar * @author: Helde...' ایله ياراتدی |
E THP (دانیشیق | چالیشمالار) بدون خلاصۀ ویرایش |
||
خط ۱: | خط ۱: | ||
if ( mw.config.get('wgNamespaceNumber') === 8 && mw.config.get('wgAction') === 'edit' ) { |
|||
// [[File:User:He7d3r/Tools/DebugModeToggle.js]] (workaround for [[phab:T35355]]) |
|||
$('input#wpSummary, #wpSummary > input').css('border', '2px solid #d33'); |
|||
/** |
|||
$('input#wpSummary, #wpSummary > input').css('background-color', '#fee7e6'); |
|||
* Add a toggle for debug mode to the sidebar |
|||
} |
|||
* @author: Helder (https://github.com/he7d3r) |
|||
* @license: CC BY-SA 3.0 <https://creativecommons.org/licenses/by-sa/3.0/> |
|||
*/ |
|||
// <nowiki> |
|||
(function(e,o){"use strict";var d=e.config.get("debug"),t={"true":"روشن کردن RL","false":"خاموش کردن RL"},u={expires:1,path:"/"};o("#ca-toggle-debug-mode").length||o(mw.util.addPortletLink("p-tb","#",t[d],"ca-toggle-debug-mode","Turn debug mode on or off and reload the page")).click(function(e){e.preventDefault(),o.cookie("resourceLoaderDebug",d?null:!0,u),window.location.reload(!0)})})(mediaWiki,jQuery); |
|||
// </nowiki> |