Greasy Fork镜像脚本页面适用于网址增强

脚本详情页适用于网址不默认跳转搜索 转为可点击的文本链接并弹出提示

安装此脚本?
作者推荐脚本

您可能也喜欢Greasyfork 糊裱匠

安装此脚本
  1. // ==UserScript==
  2. // @name Greasy Fork镜像脚本页面适用于网址增强
  3. // @name:zh-CN Greasy Fork镜像脚本页面适用于网址增强
  4. // @namespace https://github.com/ChinaGodMan/UserScripts
  5. // @version 0.9.3.66
  6. // @description 脚本详情页适用于网址不默认跳转搜索 转为可点击的文本链接并弹出提示
  7. // @description:zh-CN 脚本详情页适用于网址不默认跳转搜索 转为可点击的文本链接并弹出提示
  8. // @author 人民的勤务员 <china.qinwuyuan@gmail.com>
  9. // @match https://*.gf.qytechs.cn/zh-CN/scripts/*
  10. // @match https://*.sleazyfork.org/zh-CN/scripts/*
  11. // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAABmJLR0QAAAAAAAD5Q7t/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gYRBAceMUIR3QAAEg9JREFUeNrtXWlwVNW2/k4n3RkbM5FRMEHUBOIAekGMJV4lYVDBAeQ+IYTJODAVjwBXfRZFQRn04vthiQgGEOMDiylY4lB6g1CG8VFJLF4SSYiBRBDTSZM06aQzdH/vB+ccex5Id9IBV9WuJDvnnL3P+s7+9tprr723gBsUkkoAEAShG96VQABqAOHiz+EARog/7wAwGECkmMLEe/QAropJA+AigPMAKsWfbQCuianH7B2iAOgFQehEP4kA/xClqOQHANwL4B4AdwEYCiCkl8/uAFAPoAbAOQBnAZQDqALQhVtcEgAsB3AcwG/il0ofpzaxrONi2Qm3ksIFAFEAxgHYDqDVE+VJEhISwoKCAra0tFCj0TA/P9/uddb363Q6/vTTT/Lfw4YNo0KhaBXrMk6sm3CzKj8JwKsAvlGpVO2zZ8/mkSNHePnyZRoMBrsKcwTAnj17aC2LFi1yCYB1/vnz57ljxw7p73YA34h1TLqZFB8MIDcwMLBi6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g4ehSKBRd4u8q0enVZcchppKudXXdli1bAvfs2aP+448/wvV6fbhOp7uzq6srzWg03knyDpIxJCMBRHR1dYWpVCoA0Hd1dV0FcBWABsDF8PDwOpVKVaXVan8ZOXJkZ1xcXNvhw4ebxZGsRZlSfUwmk0oQBLS3t3eLwVTuOPvsvo+z9zSX/wfl+jWwZp8+ogAAAABJRU5ErkJggg==
  12. // @iconbak https://gf.qytechs.cn/vite/assets/blacklogo96-CxYTSM_T.png
  13. // @license MIT
  14. // @grant GM_getValue
  15. // @grant GM_setValue
  16. // @supportURL https://github.com/ChinaGodMan/UserScripts/issues
  17. // @homepageURL https://github.com/ChinaGodMan/UserScripts
  18. // ==/UserScript==
  19.  
  20. (function () {
  21. 'use strict'
  22. let useWindowOpen = GM_getValue('useWindowOpen', false) // 默认在当前页面跳转
  23. let linkBehavior = GM_getValue('linkBehavior', 0)
  24. let shouldMatchLink = false // 添加一个全局变量,默认为假 不显示适用于脚本的数量
  25.  
  26. function Toast(msg, duration) {
  27. duration = isNaN(duration) ? 3000 : duration
  28. var m = document.createElement('div')
  29. m.innerHTML = msg
  30. m.style.cssText = 'max-width:60%;min-width: 150px;padding:0 14px;height: 40px;color: black;line-height: 40px;text-align: center;border-radius: 12px;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 2147483647;background: white;font-size: 16px;'
  31. document.body.appendChild(m)
  32. setTimeout(function () {
  33. var d = 0.5
  34. m.style.transition = '-webkit-transform ' + d + 's ease-in, opacity ' + d + 's ease-in'
  35. m.style.opacity = '0'; setTimeout(function () { document.body.removeChild(m) }, d * 1000)
  36. }, duration)
  37. }
  38.  
  39.  
  40. function navigateTo(url, useWindowOpen) {
  41. if (useWindowOpen) {
  42. window.open(url, '_blank')
  43. } else {
  44. window.location.href = url
  45. }
  46. }
  47.  
  48. const ddElements = document.querySelectorAll('dd.script-show-applies-to ul.block-list.expandable > li')
  49.  
  50. ddElements.forEach(dd => {
  51. const link = dd.querySelector('a[title^="查看其他"]')
  52. const text = dd.textContent.trim()
  53. if (shouldMatchLink && link) { // 检查 shouldMatchLink 变量的值
  54. const match = link.title.match(/查看其他 (\d+) 个适用/)
  55. if (match) {
  56. const count = match[1]
  57. const note = document.createElement('sup')
  58. note.textContent = count
  59. link.appendChild(note)
  60. link.title = link.title.replace(/ \d+ /, ' ')
  61. link.addEventListener('click', function (event) {
  62. event.preventDefault()
  63. handleLinkClick(text)
  64. })
  65. }
  66. } else {
  67. const newLink = document.createElement('a')
  68. newLink.textContent = text
  69. newLink.href = '#'
  70. newLink.addEventListener('click', function (event) {
  71. event.preventDefault()
  72. handleLinkClick(text)
  73. })
  74. dd.textContent = ''
  75. dd.appendChild(newLink)
  76. }
  77. })
  78.  
  79. function handleLinkClick(linkText) {
  80. if (linkBehavior === 0) {
  81. const bodyBackgroundColor = window.getComputedStyle(document.body).backgroundColor
  82. const dialogBox = document.createElement('div')
  83. dialogBox.style.position = 'fixed'
  84. dialogBox.style.top = '50%'
  85. dialogBox.style.left = '50%'
  86. dialogBox.style.transform = 'translate(-50%, -50%)'
  87. dialogBox.style.background = bodyBackgroundColor
  88. dialogBox.style.padding = '20px'
  89. dialogBox.style.boxShadow = '0 4px 6px rgba(0, 0, 0, 0.1)'
  90. dialogBox.style.borderRadius = '8px'
  91. dialogBox.style.zIndex = '9999'
  92. dialogBox.innerHTML = `
  93. <span id="closeBtn" style="position: absolute; top: 10px; right: 10px; color: red; cursor: pointer; font-size: 30px;">&times;</span>
  94. <p style="font-weight: bold; font-size: 20px;"> <span id="linkTextSpan" style="color: red;">${linkText}</span> 操作</p>
  95. <button id="forumSearchBtn">论坛搜索</button>
  96. <button id="openUrlBtn">打开网址</button>
  97. <button id="copyLinkBtn">复制链接</button>
  98. `
  99. document.body.appendChild(dialogBox)
  100.  
  101. let dialogInitialX, dialogInitialY, initialX, initialY
  102. dialogBox.addEventListener('mousedown', onMouseDown)
  103. dialogBox.addEventListener('touchstart', onTouchStart)
  104.  
  105. function onMouseDown(event) {
  106. dialogInitialX = dialogBox.offsetLeft
  107. dialogInitialY = dialogBox.offsetTop
  108. initialX = event.clientX
  109. initialY = event.clientY
  110. document.addEventListener('mousemove', onMouseMove)
  111. document.addEventListener('mouseup', onMouseUp)
  112. }
  113.  
  114. function onTouchStart(event) {
  115. dialogInitialX = dialogBox.offsetLeft
  116. dialogInitialY = dialogBox.offsetTop
  117. initialX = event.touches[0].clientX
  118. initialY = event.touches[0].clientY
  119. document.addEventListener('touchmove', onTouchMove)
  120. document.addEventListener('touchend', onTouchEnd)
  121. }
  122.  
  123. function onMouseMove(event) {
  124. const deltaX = event.clientX - initialX
  125. const deltaY = event.clientY - initialY
  126. dialogBox.style.left = dialogInitialX + deltaX + 'px'
  127. dialogBox.style.top = dialogInitialY + deltaY + 'px'
  128. }
  129.  
  130. function onTouchMove(event) {
  131. const deltaX = event.touches[0].clientX - initialX
  132. const deltaY = event.touches[0].clientY - initialY
  133. dialogBox.style.left = dialogInitialX + deltaX + 'px'
  134. dialogBox.style.top = dialogInitialY + deltaY + 'px'
  135. }
  136.  
  137. function onMouseUp() {
  138. document.removeEventListener('mousemove', onMouseMove)
  139. document.removeEventListener('mouseup', onMouseUp)
  140. }
  141.  
  142. function onTouchEnd() {
  143. document.removeEventListener('touchmove', onTouchMove)
  144. document.removeEventListener('touchend', onTouchEnd)
  145. }
  146.  
  147. document.getElementById('linkTextSpan').style.pointerEvents = 'none'
  148. document.getElementById('closeBtn').addEventListener('click', function () {
  149. document.body.removeChild(dialogBox)
  150. })
  151.  
  152. document.getElementById('copyLinkBtn').addEventListener('click', function () {
  153. const linkText = document.getElementById('linkTextSpan').innerText
  154. const tempTextarea = document.createElement('textarea')
  155. tempTextarea.value = linkText
  156. document.body.appendChild(tempTextarea)
  157. tempTextarea.select()
  158. document.execCommand('copy')
  159. document.body.removeChild(tempTextarea)
  160. document.body.removeChild(dialogBox)
  161. Toast('文本已复制到剪贴板!', 1000)
  162. })
  163.  
  164. document.getElementById('forumSearchBtn').addEventListener('click', function () {
  165. const newUrl = `https://${location.host}/zh-CN/scripts/by-site/${linkText}`
  166. navigateTo(newUrl, useWindowOpen)
  167. document.body.removeChild(dialogBox)
  168. })
  169.  
  170. document.getElementById('openUrlBtn').addEventListener('click', function () {
  171. const originalUrl = `https://${linkText.replace(/\d+/g, '')}`
  172. navigateTo(originalUrl, useWindowOpen)
  173. document.body.removeChild(dialogBox)
  174. })
  175. } else if (linkBehavior === 1) {
  176. const originalUrl = `https://${linkText.replace(/\d+/g, '')}`
  177. navigateTo(originalUrl, useWindowOpen)
  178. } else if (linkBehavior === 2) {
  179. const newUrl = `https://${location.host}/zh-CN/scripts/by-site/${linkText}`
  180. navigateTo(newUrl, useWindowOpen)
  181. }
  182. }
  183.  
  184. const appliesToSection = document.querySelector('dt.script-show-applies-to')
  185. if (appliesToSection) {
  186. const changeConfigText = document.createElement('span')
  187. changeConfigText.textContent = '[适用于] '
  188. changeConfigText.style.fontWeight = 'bold'
  189.  
  190. const checkboxLabel = document.createElement('label')
  191. checkboxLabel.textContent = '新窗口打开'
  192. checkboxLabel.style.marginLeft = '10px'
  193.  
  194. const checkboxInput = document.createElement('input')
  195. checkboxInput.type = 'checkbox'
  196. checkboxInput.checked = useWindowOpen
  197. checkboxInput.style.marginRight = '5px'
  198.  
  199. checkboxInput.addEventListener('change', function () {
  200. useWindowOpen = checkboxInput.checked
  201. GM_setValue('useWindowOpen', useWindowOpen)
  202. })
  203.  
  204. checkboxLabel.appendChild(checkboxInput)
  205.  
  206. const selectList = document.createElement('select')
  207. selectList.style.width = '7em'
  208. const options = [
  209. { value: 0, text: '弹出提示' },
  210. { value: 1, text: '打开网址' },
  211. { value: 2, text: '论坛搜索' }
  212. ]
  213. options.forEach(option => {
  214. const optionElement = document.createElement('option')
  215. optionElement.textContent = option.text
  216. optionElement.value = option.value
  217. if (linkBehavior === option.value) {
  218. optionElement.selected = true
  219. }
  220. selectList.appendChild(optionElement)
  221. })
  222. selectList.addEventListener('change', function () {
  223. linkBehavior = parseInt(selectList.value)
  224. GM_setValue('linkBehavior', linkBehavior)
  225. Toast(`点击"适用于"网址已设置为: ${options.find(option => option.value === linkBehavior).text}`, 1000)
  226. })
  227.  
  228. appliesToSection.parentElement.appendChild(changeConfigText)
  229. appliesToSection.parentElement.appendChild(selectList)
  230. appliesToSection.parentElement.appendChild(checkboxLabel)
  231. }
  232. })();
  233.  

QingJ © 2025

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