javascript That Kills Google AutoLink Links
By Olivier Duffez
Chris and Gurtie at Search Guild have published a working script that webmasters can insert into their webpages that kills Google AutoLink links.
What you need to do:
- Insert the script anywhere in your html
- or link it using the <script> tag in the of your pages
- and it will rewrite, the rewritten urls. Killing the Autolink functionality.
Here is the code:
[code]// AutoBlink
// Puts Google\'s Autolink on the Blink :)
// (c) 2005 Chris Ridings http://www.searchguild.com
// Redistribute at will but leave this message intact
var linkcount;
function countlinks() {
var numlinks;
numlinks=0;
for (i=0; i < document.links.length; i++) {
numlinks++;
}
return numlinks;
}
function checklinks() {
if (!(linkcount==countlinks())) {
// Something changed the links!
// Iterate for an id of _goog
found=0;
for (i=0; i < document.links.length; i++) {
if (document.linksi.id.substring(0,5)=="_goog") {
// If we find an id of _goog then remove the link!
var tr = document.linksi.parentTextEdit.createTextRange();
tr.moveToElementText(document.linksi);
tr.execCommand("Unlink",false);
tr.execCommand("Unselect",false);
}
}
}
setTimeout("checklinks()",500);
}
if (document.getElementById && document.createElement) {
linkcount=countlinks();
setTimeout("checklinks()",500);
}[/code]
[url=\"http://www.devwebpro.com/devwebpro-39-20050223AjavascriptThatKillsGoogleAutoLinkLinks.html\"]Source: DevWebPro[/url]
JavaScript That Kills Google AutoLink Links
Get Help With All Aspects of Web Design & Design Software
Moderators: Moderator, Global Moderator
Return to “Web Design Principles”
Jump to
- General Category
- ↳ KillaNet Country
- ↳ 2D Graphics
- ↳ KillaNet News
- ↳ 3D & Animation
- ↳ Chatroom
- ↳ Flash
- ↳ Help & Suggestions
- ↳ Game Dev
- ↳ Audio & Video
- ↳ Introductions
- ↳ Journalism
- ↳ Phoenix Lounge
- ↳ Application Dev
- ↳ Toga Toga Toga!!!
- ↳ Photography
- ↳ Main Street Archives
- ↳ Web Design
- ↳ Fonts Icons Cursors & Screensavers
- ↳ Book Reviews
- ↳ General
- ↳ Tech Industry News
- ↳ Legal Resources
- ↳ Industry Contests
- ↳ Graphix Battle Arena
- ↳ KillaNet Contests
- ↳ Competition Archives
- ↳ Education Information
- ↳ Careers
- ↳ Game Studies
- ↳ Motivation
- ↳ Conferences & Seminars
- ↳ KillaDesign
- ↳ Animation & Film
- ↳ The Studio
- ↳ Game Development
- ↳ 2D Graphics
- ↳ Audio & Video
- ↳ 3D Graphics
- ↳ Flash
- ↳ Fonts, Icons & Emoticons
- ↳ Design Requests
- ↳ PhotoShop
- ↳ Cinema 4D
- ↳ Bryce
- ↳ Flash
- ↳ Paint Shop Pro
- ↳ Blender
- ↳ Poser
- ↳ The Darkroom
- ↳ Photo & Camera Discussion
- ↳ Photo Journalism
- ↳ Web Design Principles
- ↳ PHP & MySQL
- ↳ Designing For Print
- ↳ Writer\'s Desk
- ↳ Fiction Writing
- ↳ News Journalism
- ↳ Poetry
- ↳ Technical Writing
- ↳ Biographical Writing
- ↳ General Writing Resources
- ↳ Promotional Writing
- ↳ Film & Television
- ↳ VideoGames
- ↳ Computer Department
- ↳ General Discussion
- ↳ Windows Help
- ↳ Linux Help
- ↳ Builds & Mods
- ↳ Geek Gadgets
- ↳ Security
- ↳ Dev Discussion
- ↳ C++
- ↳ Visual Basic
- ↳ Java
- ↳ Application Skinning
- ↳ IRC Scripting
- ↳ Gaming Centre
- ↳ Guild Wars
- ↳ Aion
- ↳ Computer
- ↳ World of Warcraft
- ↳ Nintendo
- ↳ General RPG & MMORPG
- ↳ PlayStation
- ↳ XBox
- ↳ Other Consoles
- ↳ All Action
- ↳ Racers
- ↳ Sports
- ↳ FPS
- ↳ RTS
- ↳ Sim
- ↳ Casual Games
- ↳ Kids' Games
- ↳ Mobile Games
- ↳ Retro Games
- ↳ Challenges, Friendly Taunts & Discussion
- ↳ Game Requests & Bug Reports
- ↳ Open Source Games
- ↳ Puzzle Games
- ↳ HeadQuarters
- ↳ Uber Coffee Room
- ↳ KillaNet
- ↳ Coffee Room
- ↳ KillaNet
- ↳ KillaGraphix
- ↳ KillaHosting
- ↳ Marketing etc.
- ↳ Staff Issues
- ↳ Reference & Software
- ↳ Archives
- ↳ KillaBlogs
- ↳ Journalism
- ↳ Trash Can

