Senin, 05 Mei 2008

Friendster Make CSS File Advance Method


How To Make A .css File:
1) Open a new Text Document by pressing right click on Desktop then select New the choose "Text Document".

2) After opening the notepad, Put or paste the your C.S.S .extension code.
Paste the code below in the Notepad ( The C.S.S. below will hide Google Ads.)
Code:
#googleAdPlacement { display:none!important; }

3) After placing the code in Notepad go to File and Save As.
4) After clicking "Save As" type your file name add a .css on it.
Example:

5) Save your file.

How To Host:
1) Go to a File Host Site of your choice! Just open your web browser and go to Google and type on the search bar "File Hosting Site", or you can go to these site if you want.
Recommended:
http://www.ripway.com

Just Register and Login.

2) After registering go to "My Files" and select "Upload files"
Example:


3) After selecting "Upload files" you will see a "Browse..." button. Click "Browse..." and select the .css file you saved, The click "Open" Button, Then click "Upload" Button.

Example:


After the load has finished press Click here to continue!

4) After pressing Click here to continue! check your file then get the Direct Link URL

Example:


The Direct Link:
http://h1.ripway.com/ftalkcssjs/wakoko.css
-----------------------------------
Apply the direct on the code below. Replace the CSS URL with your .css file.
var css = document.createElement("link");
function injectcss() {
if(window.cssinjected == undefined) {
cssinjected = 1;
var css = document.createElement("link");
css.setAttribute("type","text/css");
css.setAttribute("rel","stylesheet");
css.setAttribute("href"," CSS URL");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);
}
}injectcss();
-----------------------------------

After replacing the CSS URL on the code. Your code must look like this:
-----------------------------------
var css = document.createElement("link");
function injectcss() {
if(window.cssinjected == undefined) {
cssinjected = 1;
var css = document.createElement("link");
css.setAttribute("type","text/css");
css.setAttribute("rel","stylesheet");
css.setAttribute("href","http://h1.ripway.com/ftalkcssjs/wakoko.css");
css.setAttribute("media","screen, print");
document.getElementsByTagName("head")[0].appendChild(css);
}
}injectcss();
-----------------------------------


Related Post :



0 comments:

R