Google Apps

Add some Google Apps to your Browser

目前为 2021-08-24 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Google Apps
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.7.0
  5. // @description Add some Google Apps to your Browser
  6. // @author Nilsksk
  7. // @match https://www.google.de/
  8. // @match https://www.google.de/*
  9. // @match https://www.google.com/
  10. // @match https://www.google.com/*
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. // Create Div for all Quick App links and images
  15. var container = document.createElement("div");
  16.  
  17. // Create Image tags
  18. var image_youtube = document.createElement('img');
  19. image_youtube = new Image(25, 25);
  20. image_youtube.setAttribute('src', 'https://lh3.googleusercontent.com/Ned_Tu_ge6GgJZ_lIO_5mieIEmjDpq9kfgD05wapmvzcInvT4qQMxhxq_hEazf8ZsqA=w300');
  21.  
  22. var image_translate = document.createElement('img');
  23. image_translate = new Image(25, 20);
  24. image_translate.setAttribute('src', 'https://lh3.googleusercontent.com/ZrNeuKthBirZN7rrXPN1JmUbaG8ICy3kZSHt-WgSnREsJzo2txzCzjIoChlevMIQEA=w300');
  25.  
  26. var image_gmail = document.createElement('img');
  27. image_gmail = new Image(25, 20);
  28. image_gmail.setAttribute('src', 'https://image.flaticon.com/icons/svg/281/281769.svg');
  29.  
  30. var image_drive = document.createElement('img');
  31. image_drive = new Image(25, 20);
  32. image_drive.setAttribute('src', 'https://upload.wikimedia.org/wikipedia/commons/d/da/Google_Drive_logo.png');
  33.  
  34.  
  35. // Create Link tags
  36. var link_youtube = document.createElement("a");
  37. link_youtube.setAttribute('href', 'https://www.youtube.com/?gl=DE');
  38.  
  39. var link_translate = document.createElement("a");
  40. link_translate.setAttribute('href', 'https://translate.google.de/?hl=de&tab=iT');
  41.  
  42. var link_gmail = document.createElement("a");
  43. link_gmail.setAttribute('href', 'https://www.google.com/gmail/');
  44.  
  45. var link_drive = document.createElement("a");
  46. link_drive.setAttribute('href', 'https://www.google.com/drive/');
  47.  
  48.  
  49. // Add to the Link tags the Image tags
  50. link_youtube.appendChild(image_youtube);
  51. link_translate.appendChild(image_translate);
  52. link_gmail.appendChild(image_gmail);
  53. link_drive.appendChild(image_drive);
  54.  
  55. // Add the combined Image and Link Tag to the container
  56. container.appendChild(link_youtube);
  57. container.appendChild(link_translate);
  58. container.appendChild(link_gmail);
  59. container.appendChild(link_drive);
  60.  
  61. // Get Element to add Quick Apps to browser window
  62. var div = document.getElementsByClassName("o3j99 qarstb")[0];
  63.  
  64. // Append style to container and add it to the the Browser window
  65. container.style="text-align: center";
  66. div.appendChild(container);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址