Pinboard Notes Filter

Add a filter for viewing your Pinboard notes

目前為 2014-10-08 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Pinboard Notes Filter
  3. // @description Add a filter for viewing your Pinboard notes
  4. // @author wenLiangcan
  5. // @version 0.3
  6. // @namespace https://github.com/wenLiangcan
  7. // @homepage https://github.com/wenLiangcan/Userscripts
  8. // @license GPL version 3 (http://www.gnu.org/licenses/gpl.txt)
  9. // @copyright Copyright © 2014 wenLiangcan
  10. // @updateURL
  11. // @downloadURL
  12. // @include http://pinboard.in/*
  13. // @include https://pinboard.in/*
  14. // @run-at document-end
  15. // @grant none
  16. // ==/UserScript==
  17.  
  18. (function() {
  19. var user = document.getElementsByClassName('banner_username')[0].getAttribute('href');
  20. var filters = document.getElementsByClassName('filter');
  21. if (filters.length !== 0) {
  22. var lastFilter = filters[filters.length - 1];
  23. lastFilter.insertAdjacentHTML('afterend', ' ‧ <a href="' + user + '/from:notes " class="filter ">notes</a>');
  24. }
  25. })();

QingJ © 2025

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