Social news site Digg recently released社會新聞網站Digg最近發布 the DiggBar是的DiggBar — a frame that sits above any content linked with Digg's new URL shortening service, containing various Digg functionality. -一幀,位於上述任何內容聯繫在一起Digg的新網址縮短服務,包含各種Digg功能。
Some like the DiggBar, while others resent the idea of their site being enclosed in a Digg-branded frame.有些像的DiggBar,而另一些不滿的思想他們的網站被封閉在一個Digg品牌的框架。 TechCrunch founding editor TechCrunch的創始編輯 Michael Arrington considers it very useful邁克爾阿靈頓認為,非常有益 . 。 Tech writer科技作家 John Gruber calls the DiggBar hyped BS約翰格魯伯調用的DiggBar誇大學士學位 and posted a並公佈了 special DiggBar-only version of Daring Fireball特殊的DiggBar只Daring Fireball的版本 that flips off the service in no uncertain terms (language not safe for work).這翻轉關閉服務毫不含糊地(語言沒有安全的工作)。 The sharp-witted在機警 Merlin Mann equates the DiggBar to an uninvited party guest默林曼等同的DiggBar一個不請自來的客人黨 . 。
Zap the DiggBar with JavaScript ZAP公司的DiggBar使用JavaScript
Bloggers, web developers and anyone else with a website who feels that the DiggBar oversteps the bounds of being a good citizen of the Web can disable the DiggBar with the following JavaScript:博客,網絡開發人員和其他人的網站認為,誰的DiggBar逾越的界限被一個好公民的網絡可以禁用的DiggBar以下的JavaScript:
if (window.self != window.top) {如果(window.self = window.top)( top.location = self.location.href; top.location = self.location.href; } )
The window.self object reference points to the portion of the browser containing your site, while window.top refers to the topmost window (where DiggBar resides).該window.self對象引用指向部分包含您的瀏覽器的網站,而window.top指的是最頂層窗口(其中的DiggBar居住)。 If your site is loaded inside a frame such as DiggBar this comparison will fail and your site will be re-assigned to the topmost window, making the DiggBar history.如果您的網站加載一個框架內,如的DiggBar這比較將失敗,您的網站將被重新分配到最頂層窗口,使的DiggBar歷史。

























