Welcome Guest ( Log In | Register )

8 Pages V « < 6 7 8  
Reply to this topicStart new topic
> Userscript index, For non-HV scripts

 
post Jan 2 2025, 02:14
Post #141
meh65



Newcomer
*
Group: Recruits
Posts: 10
Joined: 9-February 14
Level 64 (Master)


I was using a script that highlighted animated pics in a gallery, and i don't know what happened to it, it stopped working about a year ago and dont see it in tampermonkey, anyone have it?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 2 2025, 02:27
Post #142
meh65



Newcomer
*
Group: Recruits
Posts: 10
Joined: 9-February 14
Level 64 (Master)


QUOTE(romanicyte @ May 29 2023, 05:43) *

I asked Mayriad to make a script for me some time ago, so I thought about sharing it.

By her own words "It gives the count after the "Showing X - X of X images" message if there is at least one GIF".
It also highlights which thumbnails are GIFs.

Description: Highlight GIF thumbnails by border and mention a count.
[gist.github.com] EH Gallery GIF Indicator


This isn't working anymore for me
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 2 2025, 03:43
Post #143
FabulousCupcake



Casual Poster
****
Group: Gold Star Club
Posts: 496
Joined: 15-April 14
Level 451 (Dovahkiin)


QUOTE(meh65 @ Jan 2 2025, 01:27) *

This isn't working anymore for me


It's broken after the recent thumbnail updates

Replace the two occurrences of

#gdt img[title*="gif"]

to

#gdt div[title*="gif"]

on L15 and L21
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 5 2025, 11:59
Post #144
LoliconFox



Newcomer
**
Group: Members
Posts: 65
Joined: 16-May 15
Level 389 (Godslayer)


Full width E-Hentai and e-hentai, dynamically adjusting the page width, also allows you to adjust the size and margins of the thumbnails, infinite scroll to automatically load the next page
[github.com] https://github.com/Shana-V/LOLICON-WideHentai
[greasyfork.org] https://greasyfork.org/scripts/516145
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 2 2025, 10:13
Post #145
meh65



Newcomer
*
Group: Recruits
Posts: 10
Joined: 9-February 14
Level 64 (Master)


QUOTE(romanicyte @ May 29 2023, 05:43) *

I asked Mayriad to make a script for me some time ago, so I thought about sharing it.

By her own words "It gives the count after the "Showing X - X of X images" message if there is at least one GIF".
It also highlights which thumbnails are GIFs.

Description: Highlight GIF thumbnails by border and mention a count.
[gist.github.com] EH Gallery GIF Indicator


The script doesn't work anymore.

EDIT*
I see a person replied to my first message, but had no notification and don't know how to delete this post.

This post has been edited by meh65: Feb 2 2025, 10:15
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 2 2025, 10:20
Post #146
meh65



Newcomer
*
Group: Recruits
Posts: 10
Joined: 9-February 14
Level 64 (Master)


QUOTE(FabulousCupcake @ Jan 2 2025, 03:43) *

It's broken after the recent thumbnail updates

Replace the two occurrences of

#gdt img[title*="gif"]

to

#gdt div[title*="gif"]

on L15 and L21


Thanks mate
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Mar 12 2025, 13:13
Post #147
Shank



Roll for Initiative
**********
Group: Global Mods
Posts: 9,640
Joined: 19-May 12
Level 500 (Ponyslayer)


QUOTE(Shank @ Dec 24 2021, 02:34) *

I didn't do it in the method you wanted, so this may not be what you want, but I replied to your helpdesk thread on this with a potential solution
Worth noting, you can also just throw the css part onto something like stylus and it'll work just as well


Finally got round to fixing

CODE
// ==UserScript==
// @name     Gif Highlighter
// @include  https://e-hentai.org/g/*
// @version  1.0.0
// @author   Shank
// @grant    GM_addStyle
// @run-at   document-start
// ==/UserScript==
GM_addStyle ( `
div[title$="gif"] {border: 5px solid red!important;}
div[title$="png"] {border: 5px solid green!important;}
div[title$="webp"] {border: 5px solid orange!important;}
div[title$="jpg"] {border: 5px solid green!important;}
` );


png/jpg highlight green, gif red, webp orange. Easy enough to change to whatever.

This is useful for highlighting the different format types, for locating and checking pages quickly, (and side benefit of, it sometimes let you spot files that have been modified and saved in a different format, if jpg or png are changed to unique colours), but for something that counts .gif , terry has a script https://forums.e-hentai.org/index.php?showtopic=276004
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 9 2025, 01:15
Post #148
romanicyte



Veteran Poster
********
Group: Members
Posts: 2,906
Joined: 4-August 18
Level 458 (Dovahkiin)


QUOTE(blue penguin @ Nov 28 2016, 17:31) *

Does anyone have a copy of this script or of one similar? I lost my scripts recently and this link doesn't work anymore.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Apr 9 2025, 01:34
Post #149
Waitugreat



Irregular Poster
*******
Group: Gold Star Club
Posts: 1,583
Joined: 15-June 16
Level 464 (Dovahkiin)


QUOTE(romanicyte @ Apr 8 2025, 23:15) *

Does anyone have a copy of this script or of one similar? I lost my scripts recently and this link doesn't work anymore.


If this script did what I think it did, then you can just use the "HTTPS Everywhere" extension. I suppose the details will get REDACTED, so I'll just leave a friendly mail. nevermind, it doesn't need some fancy scripts. Just create a rule and redirect from bright skin to dark skin.
Necromusume was so friendly and told me about this some time ago. (IMG:[invalid] style_emoticons/default/smile.gif)

This post has been edited by Waitugreat: Apr 9 2025, 01:39
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post May 9 2025, 14:17
Post #150
Ither



Lurker
Group: Lurkers
Posts: 1
Joined: 22-April 25


how can i view e-hentai? I had a userscript before now lost it bcz of OS setup. help me

This post has been edited by Ither: May 9 2025, 14:17
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post May 9 2025, 21:04
Post #151
Waitugreat



Irregular Poster
*******
Group: Gold Star Club
Posts: 1,583
Joined: 15-June 16
Level 464 (Dovahkiin)


QUOTE(Ither @ May 9 2025, 12:17) *

how can i view e-hentai? I had a userscript before now lost it bcz of OS setup. help me


You type https://e-hentai.org/ into the adress bar of the browser. That's it. Do not install extensions. You don't need any scripts.

Maybe delete the cookies and login again. If this doesn't help, read https://ehwiki.org/wiki/technical
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Jun 18 2025, 09:10
Post #152
169.254.0.1



Lurker
Group: Gold Star Club
Posts: 8
Joined: 10-January 16
Level 251 (Lord)


Hi, I have created a script to improve the upload of large galleries.

[greasyfork.org] greasyfork
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 22 2025, 00:56
Post #153
雾雨玲子



Dokidoki Wakuwaku
***
Group: Gold Star Club
Posts: 117
Joined: 7-September 23
Level 446 (Dovahkiin)


Recently I found a script that can download works from dlsite that are only available for web browsing. It's a bit rough; does anyone want to optimize it?

(function() {
'use strict';
let revokeObjectURL = URL.revokeObjectURL
URL.revokeObjectURL = function(url) {
var element = document.getElementsByTagName('img');
if(element && element.length) {
var page = element[element.length - 1].getAttribute('alt');
if(page) {
var fileName = '';
var link = document.createElement('a');
link.href = url;
link.download = fileName + page + '.jpeg';
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
}
return revokeObjectURL.apply(this, arguments)
}
})();

This post has been edited by 雾雨玲子: Jul 7 2025, 02:40
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Aug 24 2025, 15:25
Post #154
qdddswedf



Casual Poster
***
Group: Members
Posts: 226
Joined: 11-May 15
Level 99 (Lord)


QUOTE(雾雨玲子 @ Jun 22 2025, 06:56) *

Recently I found a script that can download works from dlsite that are only available for web browsing. It's a bit rough; does anyone want to optimize it?

(function() {
'use strict';
let revokeObjectURL = URL.revokeObjectURL
URL.revokeObjectURL = function(url) {
var element = document.getElementsByTagName('img');
if(element && element.length) {
var page = element[element.length - 1].getAttribute('alt');
if(page) {
var fileName = '';
var link = document.createElement('a');
link.href = url;
link.download = fileName + page + '.jpeg';
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
}
return revokeObjectURL.apply(this, arguments)
}
})();



// ==UserScript==
// @name DLsite Web Viewer Downloader (Optimized)
// @namespace [tampermonkey.net] http://tampermonkey.net/
// @version 2.0
// @description Optimizes the script to download images from DLsite's web viewer by hooking URL.revokeObjectURL.
// @author YourName
// @match [www.dlsite.com] https://www.dlsite.com/books/viewer/=/product_id/*
// @grant none
// @run-at document-start
// ==/UserScript==

(function() {
'use strict';

// --- 設定區 (請根據實際頁面情況調整) ---
// 1. 目標圖片的 CSS 選擇器,用來精準定位圖片
const IMAGE_SELECTOR = '.pinch-zoom-target > img';
// 2. 作品標題的 CSS 選擇器,用來命名檔案
const TITLE_SELECTOR = '.work_name a';
// -------------------------------------

// 保存原始的 revokeObjectURL 函式
const originalRevokeObjectURL = URL.revokeObjectURL;

// 將常見的圖片 MIME 類型對應到副檔名
const mimeTypeToExtension = {
'image/jpeg': 'jpg',
'image/png': 'png',
'image/gif': 'gif',
'image/webp': 'webp',
'image/bmp': 'bmp',
};

// 清理檔名中的無效字元
function sanitizeFilename(name) {
// 將 Windows/Mac/Linux 不允許的字元替換成底線
return name.replace(/[\\/:*?"<>|]/g, '_');
}

// 覆寫原始函式
URL.revokeObjectURL = async function(url) {
// 我們只處理 blob URL,因為圖片資料通常在這裡
if (!url.startsWith('blob:')) {
// 如果不是 blob URL,直接呼叫原始函式並返回
return originalRevokeObjectURL.apply(this, arguments);
}

try {
// 1. 【更精準】使用 CSS 選擇器定位圖片元素
const imgElement = document.querySelector(IMAGE_SELECTOR);

// 確保我們找到了圖片元素
if (imgElement) {
// 2. 【更聰明】從 blob URL 動態獲取檔案類型
const response = await fetch(url);
const blob = await response.blob();
const extension = mimeTypeToExtension[blob.type] || 'jpg'; // 如果找不到對應類型,預設為 jpg

// 3. 【更完善的檔名】組合作品標題和頁碼
const titleElement = document.querySelector(TITLE_SELECTOR);
const title = titleElement ? titleElement.textContent.trim() : 'Untitled';
const page = imgElement.getAttribute('alt') || '00';

// 組合並清理檔名,例如:"作品標題_p01.jpg"
const fileName = sanitizeFilename(`${title}_p${page}.${extension}`);

// 建立一個隱藏的 <a> 標籤來觸發下載
const link = document.createElement('a');
link.href = url;
link.download = fileName;

// 附加到 DOM、點擊、然後移除
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
} catch (error) {
// 4. 【更穩定】加入錯誤處理
console.error('DLsite Downloader Script Error:', error);
} finally {
// 5. 【最重要】無論成功或失敗,都必須呼叫原始函式,以釋放記憶體並確保頁面正常運作
originalRevokeObjectURL.apply(this, arguments);
}
};

console.log('DLsite Downloader script loaded and ready.');

})();
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


8 Pages V « < 6 7 8
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 6th September 2025 - 14:28