1185650.jpg

三剑凛世

有dlsite跳转asmr.one的脚本吗?

有些xp dl能搜到 asmr.one tag不太够 每次都要复制RJ号再搜步骤太多了

1425871.png

orangesoup

B1F  2023-08-02 21:18
(唔。。。NTR真的是太棒了。)
一键白嫖是吧

1787064.jpg

injustice1

B2F  2023-08-02 21:28
([sell=0,money] [/sell])
应该没有,但是也不难写,主要是很多作品可能在https://asmr.one/没有出现

1787064.jpg

injustice1

B3F  2023-08-02 21:47
([sell=0,money] [/sell])
右上角有按钮可选择是否开启一键跳转。
在插件管理界面,点击右上角的 + 号可以创建脚本,功能很水而且没有后续更新我就不单独发了。
复制代码
  1. // ==UserScript==
  2. // @name        DLsite to ASMR One Redirect
  3. // @namespace   http://tampermonkey.net/
  4. // @version     0.4
  5. // @description Redirects from DLsite to corresponding ASMR One page if it exists, with a toggle button
  6. // @author      You
  7. // @match       https://www.dlsite.com/*
  8. // @grant       GM_xmlhttpRequest
  9. // ==/UserScript==
  10. (function() {
  11.     'use strict';
  12.     // Read the previous state from local storage
  13.     var redirectEnabled = localStorage.getItem('redirectEnabled') === 'true';
  14.     // Create a button to toggle the redirect functionality
  15.     var button = document.createElement('button');
  16.     button.textContent = redirectEnabled ? 'Disable ASMR One Redirect' : 'Enable ASMR One Redirect';
  17.     button.style.position = 'fixed';
  18.     button.style.top = '10px';
  19.     button.style.right = '10px';
  20.     button.onclick = toggleRedirect;
  21.     document.body.appendChild(button);
  22.     // Create a notification area below the button
  23.     var notification = document.createElement('div');
  24.     notification.style.position = 'fixed';
  25.     notification.style.top = '40px';
  26.     notification.style.right = '10px';
  27.     notification.style.color = 'red';
  28.     document.body.appendChild(notification);
  29.     function toggleRedirect() {
  30.         redirectEnabled = !redirectEnabled;
  31.         button.textContent = redirectEnabled ? 'Disable ASMR One Redirect' : 'Enable ASMR One Redirect';
  32.         localStorage.setItem('redirectEnabled', redirectEnabled);
  33.         if (redirectEnabled) {
  34.             checkRedirect();
  35.         }
  36.     }
  37.     function checkRedirect() {
  38.         var rjCode = window.location.href.match(/product_id\/(RJ\d+)/);
  39.         if (rjCode && rjCode.length > 1) {
  40.             var newUrl = 'https://asmr.one/work/' + rjCode[1];
  41.             // Check if the page exists on ASMR One site
  42.             GM_xmlhttpRequest({
  43.                 method: "HEAD",
  44.                 url: newUrl,
  45.                 onload: function(response) {
  46.                     // If the status is 200, the page exists, so redirect
  47.                     if (response.status === 200) {
  48.                         window.location.href = newUrl;
  49.                     } else {
  50.                         notification.textContent = 'The corresponding ASMR One page does not exist.';
  51.                     }
  52.                 }
  53.             });
  54.         }
  55.     }
  56.     // If the URL matches a specific pattern, run the check every second
  57.     if (window.location.href.match(/https:\/\/www\.dlsite\.com\/maniax\/work\/.*product_id\/(RJ\d+)/)) {
  58.         setInterval(function() {
  59.             if (redirectEnabled) {
  60.                 checkRedirect();
  61.             }
  62.         }, 1000);
  63.     }
  64. })();

496fde65