Sleazy Fork is available in English.

草榴社区

论坛式在线播放平台

  1. // ==UserScript==
  2. // @name 草榴社区
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.3
  5. // @description 论坛式在线播放平台
  6. // @author You
  7. // @match https://caoliu1024.com/*
  8. // @match https://caoliu.sex/*
  9. // @match https://1024.fm/*
  10. // @include /^https://www.cl\S\S\S\S\S.com.+$/
  11. // @include /^https://www.cl\S\S\S\S\S.top.+$/
  12. // @include /^https://cl\S\S\S\S\S.com.+$/
  13. // @include /^https://cl\S\S\S\S\S.top.+$/
  14. // @icon https://www.google.com/s2/favicons?sz=64&domain=cl3bd52.com
  15. // @license MIT
  16. // @grant none
  17. // ==/UserScript==
  18.  
  19. function admove(){
  20. let ad = document.getElementsByClassName('my_wrap')[0]
  21. if (ad){
  22. ad.remove()
  23. }
  24. }
  25.  
  26. function TId(){
  27. let locUrl = location.href
  28. let baseUrl = location.origin
  29. let dom = document.getElementById('dplayer')
  30. let button = document.getElementsByClassName('b')[0]
  31. let PlayUrl = ''
  32. let mp3Url = app.music.url
  33. console.log(mp3Url)
  34. // 有声书---金钱限制----新用户50金钱
  35. if (button){
  36. let s = button.onclick.toString()
  37. let vr = s.match(/'([^']*)'/)[0].replaceAll("'", '')
  38. PlayUrl = baseUrl + '/' + vr
  39. console.log(PlayUrl)
  40. button.onclick = function() {
  41. //console.log(url)
  42. fetch(PlayUrl)
  43. window.location.reload()
  44. };
  45. }
  46. else if (/fid=57/.test(locUrl)){
  47. let ImgDom = document.getElementsByClassName('vv-box')
  48. for (let i of ImgDom){
  49. let myImage = i.getElementsByTagName('img')[0]
  50. let Vid = myImage.getAttribute('alt')
  51. PlayUrl = baseUrl + '/read.php?tid=' + Vid
  52. let myLink = document.createElement("a")
  53. myLink.href = PlayUrl
  54. myImage.parentNode.insertBefore(myLink, myImage);
  55. myLink.appendChild(myImage);
  56. }
  57. }
  58. else if (dom){
  59. PlayUrl = dp.options.video.url.replace('?t=3', '')
  60. console.log(PlayUrl)
  61. let play = new DPlayer({
  62. container: document.getElementById('dplayer'),
  63. video: {
  64. url: PlayUrl,
  65. type: 'hls',
  66. },})
  67. }
  68. //setTimeout(reply(locUrl), 3000)
  69. }
  70.  
  71. function reply(locUrl){
  72. let replayArray = ['666', '回血回血', '泰裤辣','有人说我水经验,我上去就是一巴掌,不是废话么,不水怎么升级,以前不懂,看帖总是不回。一直没升级和增加经验,现在我明白了,反正回帖15字就可以升级,还可以有经验!']
  73. var randomNum = Math.floor(Math.random() * 4);
  74. let replyInput = document.getElementsByTagName('form')[1].getElementsByTagName('input')
  75. const formData = new FormData()
  76. formData.append('atc_rvrc', '0')
  77. formData.append('atc_title', replyInput.atc_title.value)
  78. formData.append('atc_usesign', '1')
  79. formData.append('atc_convert', '1')
  80. formData.append('atc_autourl', '1')
  81. formData.append('atc_content', replayArray[randomNum])
  82. formData.append('step', '2')
  83. formData.append('action', 'reply')
  84. formData.append('fid', replyInput.fid.value)
  85. formData.append('tid', replyInput.tid.value)
  86. formData.append('verify', replyInput.verify.value)
  87. formData.append('point_pid', '0')
  88. formData.append('point_id', '0')
  89. formData.append('reply_uid', '0')
  90. let replyUrl = locUrl + '/post.php?'
  91. fetch(replyUrl, {
  92. method: 'POST',
  93. body: formData,
  94. headers: {
  95. 'Content-Type': 'multipart/form-data; boundary=----WebKitFormBoundaryEn6llAAsVBv6hene', // 设置Content-Type
  96. 'Sec-Ch-Ua-Platform': "Windows",
  97. 'Sec-Fetch-Dest': 'document',
  98. 'Sec-Fetch-Mode': 'navigate',
  99. }
  100. }
  101. )
  102. }
  103.  
  104.  
  105.  
  106. (function() {
  107. admove()
  108. // 激活
  109. let a = document.getElementsByClassName('activation_code')[0]
  110. if (a){
  111. a.value = 1
  112. }
  113. setTimeout(TId(), 2000)
  114. })();