For faster navigation, this Iframe is preloading the Wikiwand page for ویکی‌پدیا:ویرایشگر خودکار/ابرابزار/ماژول.

ویکی‌پدیا:ویرایشگر خودکار/ابرابزار/ماژول

روش فعال‌سازی ماژول به فارسی

در منوی Tools به Make Module بروید و کدی که در انتهای این نوشته آمده است را در پنجرهٔ پایین صفحه درج کنید. سپس enabled را تیک بزنید و بر make module کلیک کنید. سپس Close را بزنید تا پنجره بسته شود.

نکته ۲:برای اینکه هر دفعه نیاز نباشد ماژول را فعال کنید بعد از کپی‌کردن ماژول و تغییر آدرس در بخش file دکمهٔ save settings را بزنید تا هر زمان که ویرایشگر خودکار را باز کردید ماژول برای شما فعال باشد.

کد ماژول

[ویرایش]
public string ProcessArticle(string ArticleText, string ArticleTitle, int wikiNamespace, out string Summary, out bool Skip)
        {
            string OrigText = ArticleText;
            Skip = false;
            Summary = "[[وپ:ابرابزار|+ ویرایش با ماژول ابرابزار]] ";

            try
            {
                System.Diagnostics.Process process = new System.Diagnostics.Process();
                System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();
                psi.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
                psi.FileName = "node";
                psi.Arguments = "fa_bot.js";
                using (System.IO.StreamWriter writer = new System.IO.StreamWriter("io.txt"))
                    writer.Write(ArticleText);

                System.Diagnostics.Process p = System.Diagnostics.Process.Start(psi);
                p.WaitForExit();

                if (System.IO.File.Exists("io.txt"))
                {
                    using (System.IO.StreamReader reader = System.IO.File.OpenText("io.txt"))
                        ArticleText = reader.ReadToEnd();

                    if (ArticleText == OrigText)
                        Skip = true;
                }
                else
                    Skip = true;

                return ArticleText;
            }
            catch
            {
                Skip = true;
                return OrigText;
            }
        }
{{bottomLinkPreText}} {{bottomLinkText}}
ویکی‌پدیا:ویرایشگر خودکار/ابرابزار/ماژول
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?