Home » VKontakte » Working with the VK group wall: goals and technical aspects
0
softmarker 02/25/2018 4020
The wall is the main element of the VKontakte group on which all content is posted. Using all the features of the wall, you can publish audio recordings, videos, articles, and polls. But sometimes there is too much old information on the wall. In such cases, the question arises of how to clear the wall in the VK group so that you can start publishing new content.
Proper wall work is fundamental to the success of any group in the community.
Cleaning the VK wall and publishing new content allows you to increase audience engagement and also has a positive effect on the promotion of the VK public.
How to upgrade a VKontakte group wall - filling, editing and cleaning
One example of the smart use of a wall is a community dedicated to fitness topics. At first, the promotion of the group did not work out, because the wall was filled with simpler content. Then, the strategy of creating more expensive content was chosen as the basis for promotion. So, the VKontakte group used the wall cleaning function, then moved on to publishing new articles.
After clearing the wall, the community administration posted more than 30 posts on the wall every day. This included the following types of content:
- articles with tips on training at home and in the gym;
- motivational quotes in image format;
- video lessons of performing certain exercises;
- music for working out in the gym.
Thanks to these posts, the number of new subscribers grew every day. The average increase in participants was 100-150 people per day. The number of likes and reposts also increased, since all the published material was very interesting to the target audience of athletes.
Also, proper use of the wall and all its capabilities for creating posts made it possible to reduce the cost of one subscriber from paid promotion sources to 1.5 rubles. At the initial stages of development, the cost of one subscriber was 3.5-4 rubles.
Manually
Yes, it is still the simplest and, thanks to gradually introduced interface changes, a fairly fast way to clear the tape - manually deleting entries. A user who wants to give his page an almost pristine look, ridding it of all kinds of posts and reposts from different groups, can proceed according to the standard scheme:
- After logging into your account, find the first unnecessary post on the wall, call up the pop-up menu and select “Delete post” from it.
- If the action suddenly seems wrong, you can cancel it until the page is refreshed; To do this, just use the “Restore” link.
- Repeat the same operations for the remaining posts on the VK wall until they are all deleted.
Advice: if the user does not want to clean the VKontakte wall, but simply remove posts that have lost their relevance from view, to “tidy up” it is better to use the “Archive post” option in the same context menu.
This method is simple, safe and 100% reliable, however, as you might guess, it is not the most efficient. For the owner of a VK account who wants to speed things up a little, it makes sense to use the following option - especially since it is no more difficult than restoring a VKontakte page.
Java script
Numerous third-party applications and browser plugins, which previously made it possible to recognize VKontakte guests or automatically delete all posts from the wall, little by little stop working: the site engine is constantly updated, and developers do not want or are not able to keep up with innovations.
Fortunately, reliable methods that allow you to clear a wall of all entries in a few clicks (almost the same speed as finding out the page ID in VK) still exist. The simplest of them, which involves minimal use of program code, is as follows.
For Mozilla Firefox
- Having logged into his VK page, the Mozilla Firefox user calls up the “Tools” menu.
- Next, in the “Web Development” submenu, opens the “Simple JavaScript Editor”.
- Indents at least one blank line from previous entries.
- And enters, without any changes, the command:
(function () { 'use strict'; if (!confirm ('Delete all posts from the wall?')) return; var deletePostLink = document.body.querySelectorAll('a.ui_actions_menu_item'); for (var i = 0; i
- Now, right-click on it and select the “Run” option.
- Confirm your desire to delete all posts from the VKontakte wall.
- Review information about the successful use of the command.
Source: https://konekto.ru/kak-ochistit-stenu-v-vk.html
Method 1 – Standard removal
The standard method for deleting posts on VK involves clearing them manually.
This way it is convenient to get rid of not all records at once, but selectively from several.
Just scroll down your page, click on the “Properties” button in the upper right corner of each post and select “Delete Post” in the pop-up window.
Please note that once deleted, the post cannot be returned.
If you don't want to get rid of your posts forever, just hide your wall from other users.
This way, only you will see it, and page visitors will see an empty wall.
Fig. 2 - standard removal
How to delete all VKontakte posts at once
Sometimes it becomes necessary to clean the wall of the VKontakte social network. Perhaps the information you shared is no longer relevant, or you decided to start a new life on Monday, decisively discarding the past. Of course, you can delete entries manually. But if there are more than a hundred, or even a thousand, then the process runs the risk of being delayed.
Fortunately, it is possible to bring your VKontakte wall to a pristine appearance easily and simply.
Of course, you will have to use special scripts for this, because the social network does not provide such functionality. This is done solely to protect users in case of possible account hacking.
Some articles suggest doing this using bots, for example VKBot or the vkopt program. Let’s say right away that these methods don’t work now, so don’t waste your time.
How to be?
To delete all entries from the VK wall, you will have to scroll the wall to the very bottom. This will help by repeatedly pressing the space bar or page down if there are a lot of records.
After that, right-click on the page and select the last line View element code.
In it, select the Console section:
Find the blinking cursor and free area:
Paste the following script there:
(function () { 'use strict'; if (!confirm('Delete all posts from the wall?')) return; var deletePostLink = document.body.querySelectorAll('a.ui_actions_menu_item[onclick^="wall.deletePost"] '); for (var i = 0; i Press enter and confirm your intentions:
The wall is clean!
Bonus for mobile version
To perform the same steps from the mobile version, you need to download the CleanerVK application. With its help, you can clean not only the wall, but also dialogues, groups, photos, audio and video recordings, friends and bookmarks in one fell swoop.
After downloading, the application will ask you to enter your VK registration data. Then you can safely go to the Cleaning section and “demolish” everything unnecessary.
Ready! Your wall is clean.
Source: https://hype.ru/@VKHelp/kak-udalit-vse-zapisi-vkontakte-srazu-3elougng
Method 1. How to immediately delete all posts from a VK wall quickly
I repeat once again that deleting all entries in a VK group and clearing the VK wall is the same process. And this can be done in the same way, which you will see below. Before you start deleting, make sure that you are using the full version of VKontakte, since the script did not work for me on mobile. And also in this method we will use the developer tools in the browser.
- Select the page from which you want to delete all entries at once, it doesn’t matter whether it’s your VKontakte page or a group in which you are an Administrator.
- Make sure that you definitely want to delete all entries from this page, since you can restore all entries after deletion only immediately by clicking Restore next to each entry.
- Open your browser console by right-clicking on any area of your page and selecting View element code in the Opera and View code in Chrome, and go to the Console . Or just use the hotkeys Ctrl+Shift+J to open the browser console quickly.
- In your browser console, paste the following code:(function () { 'use strict'; if (!confirm('Delete all posts from the wall?')) return; var deletePostLink = document.body.querySelectorAll('a.ui_actions_menu_item[onclick ^="wall.deletePost"]'); for (var i = 0; i < deletePostLink.length; i++) { deletePostLink .click(); } alert(deletePostLink.length + ' posts deleted'); }()) ;
- Press Enter and confirm the deletion in the pop-up window.
If you change your mind about deleting all entries and the deletion process has not yet completed, then you can refresh the page or close it, but then you will no longer be able to restore those entries that were deleted. It is better not to stop the process and, if necessary, on the same page you can restore the necessary records.
Deleting entries in a VK group, why is it needed and how to do it
Sometimes we have to delete posts from the walls of VKontakte groups. There can be many reasons for this: false information, publication violates the rules of the social network, etc. To learn how to delete entries in a VK group, read the article . Of course, it is better not to break all the known rules, so as not to start work from scratch.
An example of competent work with records
One example of why a public had to delete publications is a community dedicated to new movies.
At that time, the group https://vk.com/public123915905 had more than 1 million subscribers.
They can not only add records, but also delete them.
Every day, 40-45 posts were posted on the site, 5 of which were of an advertising nature, including links to third-party resources.
It is for this reason that the VKontakte administration applied sanctions to the public by blocking the possibility of posting links in the community. The blocking period was 2 months.
This was a big blow for the group's owners, as it meant they were no longer able to post as many advertisements as they had previously. To clarify the situation, they turned to the VK administration with the question of what needs to be done in such a situation and how to solve the problem.
The answer from the admins was extremely simple - delete all publications containing links to third-party resources, which will increase the likelihood that the possibility of posting new links will appear earlier.
How to delete all posts from a wall in VK: three ways
Many people have hundreds of posts and reposts accumulated on their social network walls. Since hobbies, tastes and views on life can change over time, some entries become embarrassing, some need to be deleted because they no longer seem funny.
And it also happens that you need to delete everything. Then the question arises: how to remove all posts from the wall without wasting a lot of time on manual deletion? There are several fairly simple methods that you can use if you need to quickly clean VKontakte.
The first method is the most difficult, but is suitable for those who have few records and do not want to use special program code. You just need to delete it manually. We will now consider three other methods - through the address bar, a console command and using a special extension.
Don't worry in advance: you won't have to write unique code yourself for such a simple action. There is a special script and programs that will delete all posts from the wall in a couple of clicks.
How to delete all VK entries through the address bar
If you want to know how to delete all posts from a wall in VK, then the simplest answer is using a script. You will need to give the browser a special command in the address bar and the wall will be cleared without difficulty.
Note! If you use quick wall cleaning on VKontakte, then remember that by doing this you may arouse suspicion on the part of the administration of the social network. Support may think that someone is trying to hack you. In such cases, the administration freezes the page.
Restoring it is not very difficult, but to do this you need to have access to the phone number to which the VK page is registered. If for some reason you don’t have a number left, and you don’t want to lose access to the page for a long time, it’s better not to use quick clearing.
After all, recovery without a phone takes up to several weeks and requires a lot of effort.
If you want to know how to delete all posts from a VK wall using the address bar, carefully follow the instructions below:
- Open your browser and go to your social network page.
- After that, copy the code with which you will issue a command to the browser. In order to copy, you can select the text and press Ctrl+C or select and copy using the right mouse button.
java****script:var h = document.get****Elements***By***Class****Name("ui_actions_menu _ui_menu"); var i = 0;function del_wall(){var fn_str = h .get***Elements****By***Tag****Name(“a”)[0].onclick.to***String (); var fn_arr_1 = fn_str.split(“{“); var fn_arr_2 = fn_arr_1[1].split(";"); eval(fn_arr_2[0]);if(i == h.length){clear***Interval(int_id)}else{i++}};var int_id=set****Interval(del_wall,500);
- After this, you need to left-click on the address bar where the name of the site in VK is written and select it, then press Ctrl+V.
- Next, you should remove all asterisks from the script name (*). There is no need to leave spaces in the code or enter any other characters.
- After the code has been cleared, you need to press the “Enter” button.
If you did everything correctly, you will need to wait a while and the wall on VKontakte will clear.
However, the method may not work not only because of your error, but also because there are internal changes in the browser or because the VK administration will limit the ability to delete all entries in VK in this way. If that doesn't work, you can try one of the methods below.
How to delete VK entries via console command
This method is more complicated than the one described above, but it is almost 100% likely to clear the entire wall of writing. In order to do this, you need:
- Open your browser and go to your VKontakte page.
- Rewind the wall to the very bottom, to where the first post is located. If you do not scroll to the very bottom, only those entries that are currently displayed for you are deleted. Rewinding may take a few minutes, but without this the console command will not produce the expected results. In order not to do this yourself, you can hold down the space bar or the End key with something and you can go about your business. You can put a small figure, a light pebble or a small magnet on the key, you can glue it with tape, the main thing is that it is constantly pressed. Soon, even a page with a thousand entries will reach the end without your participation.
- After this, you need to open the browser console. To do this, you need to call up the context menu (Shift + F10 for Windows or hold down the Ctrl key and click on the left mouse button if it’s a MacBook). Next, you need to select the “View code” option. In the menu that opens for you after this, you need to click on the Console tab.
How to delete all posts on a VK wall in Google Chrome
The same method of deleting posts from a wall completely and without any changes is suitable for Opera and Yandex browser. Well, I will demonstrate in Google Chrome.
Despite the fact that the described steps for clearing posts from a VKontakte wall may seem complicated at first glance, it is not so - in fact, everything is simple, quick, and even a novice user can do it.
Go to your VKontakte page (“My Page”), then right-click in any empty space and select “View element code”.
Developer tools will open on the right side or at the bottom of the browser window, you don’t need to figure out what’s what, just select “Console” in the top line (if you don’t see this item, which is possible on a small screen resolution, click the one shown in the top line with a right arrow to display items that do not fit).
Copy and paste the following JavaScript code into your console:
var z = document.getElementsByClassName("post_actions");var i = 0;function del_wall(){var fn_str = z
.getElementsByTagName("div")[0].onclick.toString();var fn_arr_1 = fn_str.split( "{");var fn_arr_2 = fn_arr_1[1].split(";");eval(fn_arr_2[0]);if(i == z.length){clearInterval(int_id)}else{i++}};var int_id=setInterval(del_wall,1000);
After that press Enter. The automatic deletion of all posts from the wall will begin at intervals of one second. This interval is intended so that you can actually delete all records, and not just those that are currently visible, as you might have seen in other scripts.
After cleaning the VK wall is completed (error messages will begin to appear in the console due to the fact that no posts were found on the wall), close the console and refresh the page (otherwise, the script will try to continue deleting posts.
Note: what this script does is it looks through the page code looking for posts on the wall and deletes them one by one “manually”, then after a second it repeats the same thing until there are none left. There are no side effects.
Why and how to immediately delete all posts in a VKontakte group?
How to work
Amelie
Built-in VK tools allow you to delete any posts on the wall of a page or group. The only limitation is that you can only wash one post at a time, and not in batches. This causes some inconvenience to users. How to immediately delete all posts in a VKontakte group?
Why do you need to delete them?
Posts placed on the wall are saved throughout the existence of the community. They are not deleted independently, only with the help of the person who manages this group.
The need for deletion may arise due to a change in the basic information of the public, for example, the address or contact number that is indicated in the posts. Or there is a need to update the group, which is why old posts just get in the way. Sometimes a person wants to start all over again – this is also an important reason.
How to clean everything at once
As mentioned above, the built-in VK tools do not allow you to remove posts literally in batches - only one at a time. It's one thing if there are several dozen records. What if there are hundreds or even thousands of them? This will take a very long time.
The solution to the issue is to implement a special script (read the article for more details on how to delete all posts on the wall of a VK group). Here's what you'll need to do:
- go to the group and scroll the wall as low as possible, ideally to the very beginning;
- Now you need to open the page code. A simple solution is to right-click and select “View code”. A window appears where you need to go to “Console”. If the browser is based on Chrome, just press Ctrl+F12. It looks like this:
- then copy the code below;
- place it in the window;
- Confirm in the pop-up window.
The code looks like this:
(function () { 'use strict'; if (!confirm('Delete all posts from the wall?')) return; var deletePostLink = document.body.querySelectorAll('a.ui_actions_menu_item[onclick^=”wall.deletePost”] ');for (var i = 0; i
How to delete only some posts
Major cleaning is not necessary, as individual posts can be removed. This can really be solved through the standard functions of the social network.
To remove a particular entry from your group, point at the symbolized arrow in the upper right corner of the entry, and select “Delete entry” from the drop-down menu. A notification will appear that it has been deleted. It can be restored immediately.
Using a similar method, you can erase other people’s posts on your wall. All this is also true for mobile applications running on Android or iOS.
Possible problems and solutions
There may be several problematic situations:
- There is no “Delete entry” option – you are not the administrator/owner/creator of the group. This tool only works for them. You can only complain about other people's recordings in other people's groups;
- the script does not work - insert into the code only the proven script that you see here;
- I can’t use the script from my phone – for mobile platforms, the method described above to quickly clean a wall does not work.
Source: https://smmx.ru/vk/kak-rabotat/kak-srazu-udalit-vse-zapisi-v-gruppe-vkontakte.html
Working with a wall - use a script or VKBot
The first thing to consider in terms of working with the wall is how to clean the wall in the VK group. There are two effective ways:
- Using a script.
- Using the VKBot program.
Cleaning a wall with a script
In the first case, you need to go to your group and scroll through all the published posts.
After that, right-click on any empty area on the page.
Select “View Code” from the pop-up menu.
A console will open at the bottom of the browser to view the site code.
Switch to the “Console” tab.
In the code entry line in the console, at the very bottom of it, enter the script code:
(function () { 'use strict'; if (!confirm('Delete all wall entries?')) return; vardeletePostLink = document.body.querySelectorAll('a.ui_actions_menu_item[onclick^=”wall.deletePost”]'); for ( vari = 0;i
After the code has been entered, press “Enter” on your keyboard.
A window will pop up in your browser to confirm that the entries will be deleted.
To confirm the action, click “OK”.
The script will delete entries that were within its visibility range. Next, you need to scroll through your posts again until 10-20 new posts appear and repeat all the steps with the script again.
Unfortunately, this script cannot clean the entire wall at once.
The second cleaning option is the VKBot program
Download and install the software. A free trial version will be enough.
Log in through your VKontakte page, which is the administrator of the public on which you plan to delete all content from the wall.
After that, open the utility and go to the “Profile” section. Next, go to the “Cleaning” menu and select the wall cleaning option.
With this program you can delete all posts at one time.
If you want to clean the wall from mobile devices, then you need to download special applications for this.
For Android devices, download the “VK Wall Cleaning” application from PlayMarket.
For iOS devices, you need to download the “Wash for VK” application from iTunes.
Launch one of these applications on your smartphone and log in through your VK page. After this, you can clean the records from the wall.
How to search on a wall in a VK group? To do this, go to the community and click on the magnifying glass icon in the upper right corner of the block with publications.
In the input field that opens, write the phrase or keyword by which you want to search for information.
There are two types of wall: open and closed. How to open/close a wall in a VK group?
Go to the community management section.
In the window that opens, go to “Sections”.
In the window on the left, select the desired wall type.
How to quickly delete all posts from a VKontakte wall at once
The social network “ VKontakte ” provides its users with extensive opportunities for communication. The emphasis of creative implementation and positioning falls on the capabilities of the wall in vk :
- posts with useful, advertising, creative or other information;
- reposts from the walls of other social network users and from the walls of interesting communities;
- the ability to conduct discussions under posts and reposts.
Stop! And then the moment comes when the worldview changes and unnecessary and irrelevant information accumulates on the wall, or in countless records it is not possible to find the required data without enormous time expenditure, or other reasons, and a reboot is required.
Below we will look at methods on how to delete all posts from the VKontakte with or without preserving posts (reposts) that are dear to your heart.
Slow but sure
The technical functionality of VKontakte , available to average users by default, makes it possible to delete each post on the wall individually. Let's consider step by step how to delete all posts on the VK :
- Open your profile in vk .
- We scroll through the wall to the records that need to be deleted or stop at the very first one from the top.
- We move the cursor to the upper right corner of the entry, which is displayed visually in the form of an ellipsis, or when using touch technologies, we touch the same place with our finger.
- The system offers the user a choice: “Pin" or "Delete entry" You must select " Delete entry" The answer to the question of how to independently delete an entry in the group “ In contact with».
- The message has been deleted, but the system gives the user one last chance to come to their senses and return everything to normal, asking them to click on “Restore».
- If your decision is irrevocable and you do not want to compromise, then simply continue deleting entries one by one.
- After deletions, simply refresh the page and all deleted entries will disappear forever.
You were full of determination, but, for example, on record 1017 you discovered weakness in your fingers, incessant yawning, a desire to retreat from your original goal, and other symptoms of chronic fatigue syndrome. Diagnosis - understanding that this method is not for you. It's time to move on to radical measures of post-extermination.
Fast and irrevocable
This time you will have to use the browser’s software capabilities and special “ JavaScript ”. Below we will tell you how to delete all posts on the VKontakte using the hidden option of the virtual portal:
- Open the user’s profile and scroll the wall to the very bottom, since the script allows you to delete only visible loaded services at once. If you are tired of twisting, then you can break this process into several stages.
How to quickly clean a wall in VK?
If you need to get rid of all the information located in this part of the page, then you will have to work hard, since the site has not provided a special function to help you do this in two clicks. We are not talking about walls with five or six notes on them. So, to delete an entry, you need to hover the mouse cursor over it, namely at the upper right corner, and wait for a small cross to appear (analogous to closing windows on a personal computer). And then just press it. Done - post deleted. Prudent developers make it possible for unwary users to restore an entry if it was deleted accidentally. That is, immediately after clicking the cross, until the next page refresh, you will see an information message in the free space “Record deleted. Restore". All other posts are deleted using the same principle.
If you are still puzzled by the question of how to quickly clean a wall in VK, then
We have to disappoint you - it won’t be possible to do this quickly, provided that you have accumulated a lot of records. You will have to get rid of unnecessary and outdated information step by step. Also, if you want to delete only your own posts, then the task is somewhat simplified - opposite the number indicating the number of posts, there is a link “To posts /username/”. By clicking on it, you will see all the posts you have posted. This will make it easier to remove them.
How to clear a wall on VKontakte quickly and all posts at once
When you often use the social network VKontakte, like various posts and repost them, the wall eventually begins to look like a real collection of various spam and a reasonable question arises - “how to quickly clear the wall on VK?”
By the way, this function was previously available in VK by default, but the developers decided to remove it because it was often used by attackers to delete all information from a hacked account in one click.
Last time we looked in detail at what emoticons there are in VK and how to put them on various devices, today you will learn how quickly and without extra effort you can delete all entries from the VKontakte wall at once.
Important! Before quickly deleting all entries, be sure to make sure that you have not forgotten the passwords for your own page and the email associated with it, and if you have linked it to your phone, then it should also be at hand. All this is necessary because VKontakte can take such actions as “deleting all records at once” for hacking your account and block it accordingly. But don’t be afraid, this happens extremely rarely.
Cleaning the VK wall using browser plugins
Let's start with the simplest and most convenient method; it differs from the others in that you do not have to enter various scripts into special plugins yourself or install additional programs on your computer.
VkOpt plugin
Home page: https://vkopt.net/
The most popular free extension for significantly simplifying work with VKontakte by expanding the functions of this social network. networks.
In addition to quickly erasing all records, with the help of VkOpt you can additionally, for example, download music, video or photo album. To get acquainted with all the functionality of this extension, follow the link above.
What’s noteworthy is that VkOpt works in almost all currently popular browsers, for example, Google Chrome, Opera, Orbitum, etc.
Operating principle:
After installing the extension, open your VK page and click on the blue bar that displays the number of posts on your wall (see picture).
A page will open with all the entries, in the top right corner, above the field asking you to publish some news, click on the “Actions” link and select “Clear wall” from the list that appears. A process will start, after which all records will be erased.
ViKey Zen plugin
Source: https://anisim.org/articles/kak-ochistit-stenu-v-vkontakte-byistro-i-vse-zapisi-srazu/
What is a “wall” and what is the principle of its operation
This strange word on the social network “VKontakte” is usually used to refer to a part of a user’s page on which anyone or everyone with access can post posts, add posts, images, music and videos, and also draw so-called graffiti. The wall has its own privacy settings. The user himself can determine who will see his posts, those of others and, most importantly, who can leave them (by default, “In Contact”, a contact, even if he is not your friend, has access to your wall). You can also completely disable the ability to leave information. The wall functions as follows: the latest posts are always shown at the very top, and the outdated ones are collapsed into a feed, that is, the lower the post, the older it is. There is a filter function for your own and other people's posts.
How to quickly delete all posts from the VKontakte wall
You will need a computer with a browser and a small piece of code, which is given in the article. The cleaning time will depend on the total number of records.
Go to your VKontakte page
Go as low as possible, preferably to the very first publication
At one time, you can only delete those posts that the system displays on the wall. Therefore, it is important to get to the very bottom.
It may take a while to scroll through the page, but in any case everything will be much faster than deleting it manually. To speed up the process, hold down Spacebar or End.
Open your browser console
Source: https://Lifehacker.ru/kak-udalit-zapisi-so-steny-vk/
Method 2. Delete all posts from the VK wall at once, starting from the bottom
This method also easily deletes all posts from both your page and the group. The interesting thing is that it starts deleting records from the bottom, and does not do it very quickly. As I wrote an article for you, I lost half of my VK entries because I thought that this method was no longer relevant. But it still works! The advantage of this method is that you do not need to open developer tools.
- Open your VK page or group in which you are an administrator and where you want to clear the wall of posts.
- Remember that deletion begins with the first posts on your page or group, so you should first go to the bottom of the page and then start cleaning the wall.
- Paste the following code into the address bar of the browser, while replacing the site address, and after java , do not forget to erase LLC javaOOO script after pasting into the address bar of the browser: var h = document.getElementsByClassName("ui_actions_menu _ui_menu"); var i = 0;function del_wall(){var fn_str = h .getElementsByTagName(“a”)[0].onclick.toString(); var fn_arr_1 = fn_str.split(“{“); var fn_arr_2 = fn_arr_1[1].split(";"); eval(fn_arr_2[0]);if(i == h.length){clearInterval(int_id)}else{i++}};var int_id=setInterval(del_wall,500);
- Press Enter to run the script.