-->
Showing posts with label Tips Tricks. Show all posts
Showing posts with label Tips Tricks. Show all posts

Thursday, 20 November 2014

How To Delete All Facebook Message in One Click ?

Posted by FaqeerMuhammad at 06:22 0 Comments
It takes a lot of time to delete chats one by one specially girls chat :v So here I got a trick to delete all the messages in one click!

Requirements

1. Mozilla Firefox
2. Grease Money

Steps 

1. Open Mozilla Firefox

2. Install Grease Monkey Addon

3. Restart Firefox

4. Go To Userscripts and install this script

5. Now Login In Your Facebook Account

6. Go To messages there you will see a delete button

7. Use it to delete all the messages in once

Monday, 17 November 2014

How to Use Cookies in Javascript ?

Posted by FaqeerMuhammad at 06:56 0 Comments
Each time we visit a website, cookies can be stored to 'remember' things that we do while browsing a page. This may happen, for example, when we visit a page where we have to login with an username and a password. In this case, after verifying that the login is correct, usually a cookie is recorded on our computer.

An example would be the popular page of Google. This search engine allows users to choose how many search results they want to see on each page. Thanks to a cookie, this configuration remains unchanged for each computer, even after rebooting several sessions. Despite this, it is good to remove them from time to time because, although, some will expire being erased automatically after a while, some of them will never do so.

Like many other things, cookies may suffer a poor use and hence their bad reputation. For instance, some websites can store and study the browsing habits of a user without their knowledge. This is why most browsers already include a system to filter them and can decide if they will provide some privacy or not.

If you want to see a live example of how a cookie works, please visit this page and refresh it a few times. You should get an alert window telling you about how many times you visited the page.
(script source: javascriptkit.com)

There could be other ways to use cookies but a server could do this with JavaScript. Below we have a simple script that can be used as many times we want, even for different purposes. Basically, what the following script does is to create three functions: the first one is to set a cookie, the second one is to read it, and the last one is to erase it. We can apply it in Blogger by accessing the template HTML and add it just before the </head> tag:

<script type='text/javascript'>
//<![CDATA[

// Set cookie
function setCookie(name, value, expires, path, domain, secure) {
document.cookie = name + "=" + escape(value) +
((expires == null) ? "" : "; expires=" + expires.toGMTString()) +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
((secure == null) ? "" : "; secure");
}

// Read cookie
function getCookie(name){
var cname = name + "=";
var dc = document.cookie;
if (dc.length > 0) {
begin = dc.indexOf(cname);
if (begin != -1) {
begin += cname.length;
end = dc.indexOf(";", begin);
if (end == -1) end = dc.length;
return unescape(dc.substring(begin, end));
}
}
return null;
}

//delete cookie
function eraseCookie (name,path,domain) {
if (getCookie(name)) {
document.cookie = name + "=" +
((path == null) ? "" : "; path=" + path) +
((domain == null) ? "" : "; domain=" + domain) +
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}

//]]>
</script>
Once done, in order to set a cookie, we only need to put the name and the value in quotes when we call the function. Additionally, we will set the expiry date by getting the current Time (in milliseconds) and add the required number of minutes (in milliseconds):
var expiration = new Date();
expiration.setTime(expiration.getTime() + 10000); //Expire after 10 seconds
setCookie("cookiename","hello",expiration);
}
The above code sets a cookie called cookiename, with the hello value and set its expiry date to 10 seconds after it has been set (10000 milliseconds = 10 seconds). If we want to restore the value of this cookie, then we should use the second function with the cookie name:
var checkCookie = getCookie("cookiename");
By adding this code below <body>, we created a cookie with the value 'hello' which can be shown on the screen if we want to. The cookie will disappear after 10 seconds:
<script type='text/javascript'>
var expiration = new Date();
expiration.setTime(expiration.getTime() + 10000);
setCookie("cookiename","hello",expiration);
var checkCookie = getCookie("cookiename");
document.write(checkCookie);
</script>
The erase function is used in the same way as the one for reading just by clicking on the name of the cookie. The setCookie values for 'domain' and 'secure' are not utilized. Use 'domain' on the Javascript cookie if you are using it on a subdomain, where the cookie is set on the widgets subdomain, but you need it to be accessible over the whole yoursite.com domain.

Thursday, 13 November 2014

Tips To Avoid From Getting Banned In Your Google Adsense Account

Posted by FaqeerMuhammad at 10:49 0 Comments
Tips To Avoid From Getting Banned In Your Google Adsense Account
As many of you already know, Google Adsense is the most popular and generous advertisment service from Google that gives you recurring income. However, some people don't bother to read the Adsense policies and they usually violate AdSense Terms and conditions without knowing and as a result, later to find out that their accounts have been disabled. Many times, fraud clicks are the main cause. But there could be many other reasons for an Adsense account to be disabled.

So, if you want to keep your Google Adsense account safe, please read and keep in mind the following rules:


  1. Never use adult, violent or advocating racial intolerance content on your site.
  2. Never copy paste any article from any other website. Google can easily find out which one is original.
  3. Never click on your own ads. Google can analyze all the clicks made on your ad units.
  4. Never place above your Adsense ad units texts like "Click on ad below", "Please click below" etc. instead you can use label headings as "sponsored links" or "advertisements".
  5. Never say your friends to click on your ads on social networking websites like Facebook
  6. Don't put unwanted links, pop-ups on your website. Keep interface quite neat and clean with proper navigation and all. Google also looks for the quality standard of websites.
  7. You must have a privacy policy page which must contain a description about the use of Google AdSense on your website. This is the latest policy introduced by Google. Many webmasters don't know about it which results in their account getting banned.
  8. Hide Adsense ad units from Contact and Privacy Policy page. Place ads only on Content Pages. Advertisers pay only for content based ads.
  9. Never display Adsense ads in floating boxes with images or texts that could overlap or cover the ads. However, you can use floating text, images on your website under the condition they don't play with your Adsense ads.
  10. Never place more than 3 ad units and 3 ad links or 2 adsense search boxes on any web page.
  11. Do not confuse with adjacent images - It was a common policy to increase CTR by placing same number of images as the number of text ads, which falsely gave the impression that the text ads represented an explanation to these images. Inserting a small space or a line between the images and ads is not allowed. Make sure that the ads and images are not arranged in a way that could easily mislead or confuse your visitors. Read more about this here
  12. Do not send your Google adsense ads code to anyone.
  13. Never place your Google ads any unit under any drop down menu, if you do so you are Violate Google Adsense TOS.
  14. Never place Adsense ads on empty pages (pages with no content), pop-up pages, error pages, contact forms or registration pages.
These rules are the minimum requirements for maintaining an AdSense account in a proper way.
Whenever needed, it is better to ask for adsense help from the learned staff of Google Adsense. At least, you'll get authorized and very helpful tips from them! 
 Good luck

Saturday, 1 November 2014

3 Awesome Tricks Of VLC Media Player

Posted by FaqeerMuhammad at 03:05 0 Comments
Hello today I am showing you some of the Best Hidden VLC Media Player traps. Accept me it is a crate of Tricks that you simply need to open. Today in this post i am going to tell Some Cool VLC traps that you won't just learn them additionally will Enjoy performing it.

Watch Youtube Videos In VLC

Step 1: Open VLC media player and Click On "Media" to Select "Open Network Stream".  CTRL + N is the shortcut to perform this task.
Step 2: Open YouTube and head over to your Favorite Video, Copy the URL of the youtube video which will look like https://www.youtube.com/watch?#######.
 Step 3: Once you have copied the URL simply Paste it there where it says Enter the network url and Click Play.You will see that the Video is Streaming in VLC very Smoothly.

  Convert Videos With VLC

Yes, you read it right, you can specifically watch any youtube feature in VLC Media player, doubtlessly you require Internet Connection. You can likewise dispose of unwanted ads disturbance brought about in Youtube Videos.
 
Step 1: Open VLC media player and Click On "Media" which is located at top right corner. Now Select Convert/Save. Or Alternatively you can simply Press "CTRL + R".
Step 2: Now a Window will pop up like a below picture, Simply click on Add and choose the file you want to convert, now Click on Convert/save.
Step 3: Then Select the type of the file you want it to convert to. You can even tweak the video encoding. That's it, and this is how you can convert any video in VLC media Player. 

 Audio & Video Effects

Step 1: Open VLC media player, click on Tools > Effects and Filters.
Step 2:  Click on Audio Effect if you want to add effects if you are playing audio or Click on Video effect to add effects in a video file.
Step 3: Now Play around and make changes to add effects which will take place live.


 You can make changes in the form of Brightness, Hue etc. Other tabs like synchronization is there to add effects too.Keep learning with King of Tricks.


© 2014 King Of Tricks . Proudly Powerd By Faqeera
back to top