Find Jobs
Hire Freelancers

Fix my code - Header Script that adds nofollow tag

$10-30 USD

Completed
Posted about 8 years ago

$10-30 USD

Paid on delivery
I am using a script in the header of my website to make all external links rel=nofollow. The code works but I need to be able to make certain domains dofollow. Here is what I am using: <script type="text/javascript"> jQuery(document).ready(function () { jQuery('a[href*="http://"]:not([href*="[login to view URL]"])').attr('rel', 'nofollow'); jQuery('a[href*="https://"]:not([href*="[login to view URL]"])').attr('rel', 'nofollow'); }); </script> I need to be able to add 2-3 more domains as an exception. I am using 'SocialEngine' so I only have limited access to files which is why I need to make this work using the header script.
Project ID: 9791243

About the project

3 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
dear sir let me fix this problem for you
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
3 freelancers are bidding on average $17 USD for this job
User Avatar
I certainly that i can do this well, because a new member in here so I need a good review, the price is not a problem!
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
Nottingham, United Kingdom
5.0
30
Payment method verified
Member since Aug 6, 2013

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.