浏览器同时让四个搜索引擎一起帮你搜索

浏览器同时让四个搜索引擎一起帮你搜索

代码变成书签到收藏夹上的方法: 任意收藏一个网页,在收藏夹得到一个书签,右键点击这个书签,编辑这个书签,修改名称为(4搜索),内容替换为代码,保存即可使用。

javascript:
      if (navigator.clipboard) {  
    navigator.clipboard.readText().then(function(text) {    
      const encodedText = encodeURIComponent(text);  
      const searchUrl1 = `https://www.baidu.com/s?wd=${encodedText}`;  
      window.open(searchUrl1, '_blank'); 
      const searchUrl2 = `https://www.bing.com/search?q=${encodedText}`;  
      window.open(searchUrl2, '_blank'); 
      const searchUrl3 = `https://www.so.com/s?q=${encodedText}`;  
      window.open(searchUrl3, '_blank'); 
      const searchUrl4 = `https://www.sogou.com/web?query=${encodedText}`;  
      window.open(searchUrl4, '_blank');
    }).catch(function(err) {  
      console.error('无法读取剪贴板内容: ', err);  
    });  
  } else {  
    console.error('浏览器不支持剪贴板API');  
  }

 

给TA打赏
共{{data.count}}人
人已打赏
技术教程

傻瓜式本地一键安装各种 AI 模型的浏览器

2023-12-29 16:18:21

技术教程

CSDN文章去除广告保存文章油猴脚本

2024-5-17 14:14:26

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索