FC2

FC2fuzhu

  1. // ==UserScript==
  2. // @name FC2
  3. // @namespace http://tampermonkey.net/
  4. // @version 2024-02-22
  5. // @description FC2fuzhu
  6. // @author You
  7. // @match https://adult.contents.fc2.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=fc2.com
  9. // @require https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js
  10. // @grant none
  11. // @license MIT
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. //JS 取右字符函数
  17. function jsright(obj,str){
  18. var index = obj.indexOf(str);
  19. obj = obj.substring(index + 1,obj.length);
  20. return obj;
  21. }
  22. var i,urlstr,str,addstr;
  23. var getclass=jQuery('.c-cntCard-110-f_thumb a');
  24. for(i=0;i<getclass.length;i++)
  25. {
  26. console.log(i);
  27. urlstr=getclass[i].href;
  28. console.log(urlstr);
  29. str =jsright(urlstr, '=');
  30. console.log(str);
  31. jQuery('.c-cntCard-110-f_price')[i].innerHTML= jQuery('.c-cntCard-110-f_price')[i].innerHTML+' <a href="https://btsow.motorcycles/search/'+str+'" target="_blank">search</a>'
  32. ;
  33.  
  34. }
  35. })();