V2ex辅助

V2ex辅助,对文章用浏览器新标签页打开。

  1. // ==UserScript==
  2. // @name V2ex辅助
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2.2
  5. // @description V2ex辅助,对文章用浏览器新标签页打开。
  6. // @author rainmint
  7. // @match *://www.v2ex.com
  8. // @match *://www.v2ex.com/go/*
  9. // @match *://www.v2ex.com/?tab=*
  10. // @match *://www.v2ex.com/recent
  11. // @match *://www.v2ex.com/member/*
  12. // @icon https://www.google.com/s2/favicons?sz=64&domain=v2ex.com
  13. // @grant none
  14. // @license GPL-3.0-only
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. 'use strict';
  19.  
  20. // Get all post links on the page
  21. var postLinks = document.querySelectorAll('.item_title a');
  22.  
  23. // Loop through each link and add target="_blank" attribute
  24. for (var i = 0; i < postLinks.length; i++) {
  25. postLinks[i].setAttribute('target', '_blank');
  26. }
  27. })();

QingJ © 2025

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