汇编器的执行过程
艾萨克牛顿 google主页 代码

Chrome 的 RenRen 扩展升级了

皮贝贝 posted @ 2009年12月16日 23:49 in 未分类 with tags chrome Renren 校内 , 3379 阅读

无意间, 注意到 RenRen 扩展弹出窗口页面上, 多了一个小图标. 点击打开一个标签页, 进入 home.renren.com. 想起第一个版本, 真搞笑, 就搞了个 Frame, 然后填充了 m.renren.com, 整的跟手机一个样子, 现在只是在第一个版本的基础上加了个函数:

 

<html>
<style id="ToolstripThemeCSS">
</style>
<script type="text/javascript">
  var renrenRe = /https?\:\/\/home.renren.com\/(?!a\/)/;
  var renren = "http://home.renren.com/";
  function goHome() {
  chrome.tabs.getAllInWindow(undefined, function(tabs) {
    for (var i = 0, tab; tab = tabs[i]; i++) {
      if (tab.url && renrenRe.test(tab.url)) {
        chrome.tabs.update(tab.id, {selected: true});
        return;
      }
    }
    chrome.tabs.create({url: renren});
  });
}
</script>
<head></head>
<body>
  <div style="position:absolute;top:100px;right:50px;">
    <a href="javascript:void" onclick="javascript:goHome()">
      <img title="功能不全,想打开浏览器网页?点我吧!" src="images/jump.gif"/>
    </a>
  </div>
  <iframe src="http://m.renren.com" style="width:330px;height:400px" 
  frameborder="0" algn="left" marginwidth="0" marginheight="0" scrolling="yes"></iframe>
</body>
</html>

 

第一个版本约略记得是这个样子:

 

<html>
<style id="ToolstripThemeCSS">
</style>
<head></head>
<body>
  <iframe src="http://m.renren.com" style="width:330px;height:400px" 
  frameborder="0" algn="left" marginwidth="0" marginheight="0" scrolling="yes"></iframe>
</body>
</html>

 

其实上手机校内, 主要是看状态的围脖, 校内的围脖怎么说也是个垃圾, 很不实用

 

 

 

 

 

Avatar_small
pavzi.com 说:
2024年1月25日 18:38

The primary idea or goal of this website has been to offer resources that contain comprehensive information on every subject and are accessible via the Internet. making certain that each and every reader finds the most relevant and pavzi.com worthwhile information regarding the subject they are searching for and linking to our content.Because our website is multi-niche or multi-category, it will guarantee that it offers resources and information on every subject. Our website features a number of timeless topics, including career, job recruitment, education, technology, and reviews, among others.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter