svnno****@sourc*****
svnno****@sourc*****
2008年 9月 20日 (土) 01:57:36 JST
Revision: 446 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=446 Author: flyson Date: 2008-09-20 01:57:36 +0900 (Sat, 20 Sep 2008) Log Message: ----------- [04_BRANCH] Stage6 サポート停止 Modified Paths: -------------- branches/bbs2chreader/04_BRANCH/defaults/skin/popup.js -------------- next part -------------- Modified: branches/bbs2chreader/04_BRANCH/defaults/skin/popup.js =================================================================== --- branches/bbs2chreader/04_BRANCH/defaults/skin/popup.js 2008-09-19 16:54:48 UTC (rev 445) +++ branches/bbs2chreader/04_BRANCH/defaults/skin/popup.js 2008-09-19 16:57:36 UTC (rev 446) @@ -271,10 +271,7 @@ init: function(){ var xpathYoutube = "descendant::a[@class='outLink'][contains(@href, '.youtube.com/watch')]"; - var xpathStage6 = "descendant::a[@class='outLink'][contains(@href, 'http://stage6.divx.com/content/show')]"; - var xpathStage6m = "descendant::a[@class='outLink'][contains(@href, 'http://stage6.divx.com/members')]"; - var xpathStage6c = "descendant::a[@class='outLink'][contains(@href, 'http://stage6.client.jp/#')]"; - var xpath = xpathYoutube +"|"+ xpathStage6 +"|"+ xpathStage6m +"|"+ xpathStage6c; + var xpath = xpathYoutube; for(let [index, node] in b2rPopup.xpathEvaluate(xpath)){ node.setAttribute("onmouseover", "b2rPopup.videoPopup.mouseOver(event)"); @@ -291,12 +288,6 @@ var content; if(url.indexOf(".youtube.com")!=-1 && url.match(/v=([^\&]+)/)){ content = b2rPopup.videoPopup.createYoutubeContent(RegExp.$1); - }else if(url.indexOf("stage6.divx.com")!=-1 && url.match(/content_id=([^\&]+)/)){ - content = b2rPopup.videoPopup.createStage6Content(RegExp.$1); - }else if(url.indexOf("stage6.divx.com")!=-1 && url.match(/videos\/([^\&]+)/)){ - content = b2rPopup.videoPopup.createStage6Content(RegExp.$1); - }else if(url.indexOf("http://stage6.client.jp/#")!=-1 && url.match(/\/#([^\&]+)/)){ - content = b2rPopup.videoPopup.createStage6Content(RegExp.$1); } if(content){ @@ -313,22 +304,6 @@ videoObject.setAttribute("width", "320"); videoObject.setAttribute("height", "260"); return videoObject; - }, - - - createStage6Content: function(aVideoID){ - var url = "http://stage6.divx.com/content/show?content_id=" + aVideoID + ".divx"; - var thumbnailURL = "http://images.stage6.com/videos/" + aVideoID + ".jpg"; - - var link = document.createElement("a"); - link.setAttribute("href", url); - link.setAttribute("target", "_blank"); - var image = document.createElement("img"); - image.setAttribute("src", thumbnailURL); - image.style.width = "320px"; - image.style.borderStyle = "none"; - link.appendChild(image); - return link; } }; \ No newline at end of file