download Tổng hợp các Userscripts

  • Người tạo chủ đề Người tạo chủ đề Fioren
  • Ngày bắt đầu Ngày bắt đầu
Mã:
about:config
dom.min_background_timeout_value = 1
dom.min_background_timeout_value_without_budget_throttling = 1
:doubt:
trư dung gu gồ mà ngài
IYBUDjG.jpg

hex:
68747470733A2F2F766F7A2E766E2F742F746F6E672D686F702D6361632D75736572736372697074732E3931343536302F
68 74 74 70 73 3A 2F 2F 77 77 77 2E 79 6F 75 74 75 62 65 2E 63 6F 6D 2F 77 61 74 63 68 3F 76 3D 73 39 72 6C 64 30 36 4A 47 57 41

Mã:
68747470733A2F2F766F7A2E766E2F742F746F6E672D686F702D6361632D75736572736372697074732E3931343536302F
68 74 74 70 73 3A 2F 2F 77 77 77 2E 79 6F 75 74 75 62 65 2E 63 6F 6D 2F 77 61 74 63 68 3F 76 3D 73 39 72 6C 64 30 36 4A 47 57 41
68747470733A2F2F766F7A2E766E2F742F746F6E672D686F702D6361632D75736572736372697074732E3931343536302F

68 74 74 70 73 3A 2F 2F 77 77 77 2E 79 6F 75 74 75 62 65 2E 63 6F 6D 2F 77 61 74 63 68 3F 76 3D 73 39 72 6C 64 30 36 4A 47 57 41

Base64
aHR0cHM6Ly92b3oudm4vdC90b25nLWhvcC1jYWMtdXNlcnNjcmlwdHMuOTE0NTYwLw==

Mã:
aHR0cHM6Ly92b3oudm4vdC90b25nLWhvcC1jYWMtdXNlcnNjcmlwdHMuOTE0NTYwLw==
aHR0cHM6Ly92b3oudm4vdC90b25nLWhvcC1jYWMtdXNlcnNjcmlwdHMuOTE0NTYwLw==
 
Sửa lần cuối:
bữa giờ nhìn ocd, nay rảnh mò theo của bác :sexy_girl:
Mã:
// ==UserScript==
// @name         Sửa lỗi emo Voz.vn
// @icon         https://www.google.com/s2/favicons?sz=64&domain=voz.vn
// @version      1.0
// @include      https://voz.vn/*
// @run-at       document-idle
// ==/UserScript==

(function() {
    'use strict';

    function replaceUrls(element) {
        const attributes = ['src', 'srcset'];
        attributes.forEach(attr => {
            const value = element.getAttribute(attr);
            if (value) {
                let newValue = value.replace(/https:\/\/statics\.voz\.tech/g, 'https://voz.vn');
                newValue = newValue.replace(/https:\/\/data\.voz\.vn(?!\/avatars\/)/g, 'https://voz.vn');
                element.setAttribute(attr, newValue);
            }
        });
    }

    const observer = new MutationObserver(mutations => {
        mutations.forEach(mutation => {
            mutation.addedNodes.forEach(node => {
                if (node.nodeType === 1) {
                    if (node.tagName === 'IMG') {
                        replaceUrls(node);
                    } else if (node.querySelector) {
                        node.querySelectorAll('img').forEach(replaceUrls);
                    }
                }
            });
        });
    });

    observer.observe(document.body, { childList: true, subtree: true });
    document.querySelectorAll('img').forEach(replaceUrls);
})();
Thanks chủ tịt. À mà con vịt pede bao giờ lên 3.0 đây chủ tịt ơi:nosebleed:
 
bữa giờ nhìn ocd, nay rảnh mò theo của bác :sexy_girl:
Mã:
// ==UserScript==
// @name         Sửa lỗi emo Voz.vn
// @icon         https://www.google.com/s2/favicons?sz=64&domain=voz.vn
// @version      1.0
// @include      https://voz.vn/*
// @run-at       document-idle
// ==/UserScript==

(function() {
    'use strict';

    function replaceUrls(element) {
        const attributes = ['src', 'srcset'];
        attributes.forEach(attr => {
            const value = element.getAttribute(attr);
            if (value) {
                let newValue = value.replace(/https:\/\/statics\.voz\.tech/g, 'https://voz.vn');
                newValue = newValue.replace(/https:\/\/data\.voz\.vn(?!\/avatars\/)/g, 'https://voz.vn');
                element.setAttribute(attr, newValue);
            }
        });
    }

    const observer = new MutationObserver(mutations => {
        mutations.forEach(mutation => {
            mutation.addedNodes.forEach(node => {
                if (node.nodeType === 1) {
                    if (node.tagName === 'IMG') {
                        replaceUrls(node);
                    } else if (node.querySelector) {
                        node.querySelectorAll('img').forEach(replaceUrls);
                    }
                }
            });
        });
    });

    observer.observe(document.body, { childList: true, subtree: true });
    document.querySelectorAll('img').forEach(replaceUrls);
})();
Viết bằng HE là ngon nhất đó ngài, hiệu năng tốt, không bị load thừa 404:

  • Name: DenVau
  • Redirect request
  • Regular expression
  • Match: ^https:\/\/statics\.voz\.tech(.*?)$
  • Redirect: https://voz.vn$1

  • Name: DenVau2
  • Redirect request
  • Regular expression
  • Match: ^https:\/\/data\.voz\.vn(?!\/avatars\/)(.*?)$
  • Redirect: https://voz.vn$1


 
Thanks chủ tịt. À mà con vịt pede bao giờ lên 3.0 đây chủ tịt ơi:nosebleed:
ai biết, đổi gió thì có thể dùng thử thằng này, nhân aira2
:shame:
Viết bằng HE là ngon nhất đó ngài, hiệu năng tốt, không bị load thừa 404:

  • Name: DenVau
  • Redirect request
  • Regular expression
  • Match: ^https:\/\/statics\.voz\.tech(.*?)$
  • Redirect: https://voz.vn$1

  • Name: DenVau2
  • Redirect request
  • Regular expression
  • Match: ^https:\/\/data\.voz\.vn(?!\/avatars\/)(.*?)$
  • Redirect: https://voz.vn$1
xịn :sexy_girl:
 
mấy thằng aria2 này có cách nào fake user agent các kiểu k sếp nhỉ
aria2 nó hoạt động nhờ vào extension, extension nào mà cũng có lấy UA khi tải, thì thích chỉnh sao chả đc?
theo như mình hỉu thì mấy số này càng nhỏ thì thằng firefox chạy càng nhiều phải ko ạ
cái khóa này là để tab nền có nó yêu cầu quyền chạy dưới nền thì ff đáp ứng ngay, còn để mặc định là sau 1s mới phản ứng lại. Không ảnh hưởng gì về pin cho lắm, vì kiểu gì web cũng yêu cầu chạy, chạy trước hay sau gì cũng phải chạy nhiêu đó. Trừ phi để số cực lớn 5,10 phút gì đó mới thấy khác biệt.
 
tự ghép file là sao bác nhỉ. download về thì là 1 file rồi mà bác?
youtube download 1080p trở lên là nó chia ra 2 file, 1 cái video, 1 cái âm thanh. IDM nó tự ghép 2 file lại thành 1 file, file centipede không tự động, phải tự làm bằng tay.
 
Viết bằng HE là ngon nhất đó ngài, hiệu năng tốt, không bị load thừa 404:

  • Name: DenVau
  • Redirect request
  • Regular expression
  • Match: ^https:\/\/statics\.voz\.tech(.*?)$
  • Redirect: https://voz.vn$1

  • Name: DenVau2
  • Redirect request
  • Regular expression
  • Match: ^https:\/\/data\.voz\.vn(?!\/avatars\/)(.*?)$
  • Redirect: https://voz.vn$1
Còn attachment thì có cách nào fix không nhỉ
 
Viết bằng HE là ngon nhất đó ngài, hiệu năng tốt, không bị load thừa 404:

  • Name: DenVau
  • Redirect request
  • Regular expression
  • Match: ^https:\/\/statics\.voz\.tech(.*?)$
  • Redirect: https://voz.vn$1

  • Name: DenVau2
  • Redirect request
  • Regular expression
  • Match: ^https:\/\/data\.voz\.vn(?!\/avatars\/)(.*?)$
  • Redirect: https://voz.vn$1
bổ sung thêm cái của thầy gầy, sửa lỗi avatar (được một số thôi, còn lại vài cái thì chịu)
  • Name: DenVau3
  • Redirect request
  • Regular expression
  • Match: ^https:\/\/data\.voz\.vn\/avatars\/s(.*?)$
  • Redirect: https://data.voz.vn/avatars/m$1
Thêm userscript, quét được thêm nhiều avatar hơn nữa
Mã:
// ==UserScript==
// @name         Sửa lỗi avatars Voz.vn
// @icon         https://www.google.com/s2/favicons?sz=64&domain=voz.vn
// @version      1.1
// @include      https://*voz.vn/*
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    function switchToNextAvailableImage(event) {
        const originalSrc = event.target.src;

        if (originalSrc.includes("web.archive.org")) {
            if (event.target.getAttribute('data-tried-m') === 'true') {
                const sSizeUrl = originalSrc.replace('/m/', '/s');
                event.target.src = sSizeUrl;
                event.target.removeAttribute('data-tried-m');
            }
            return;
        }

        const basePathRegex = /(https:\/\/data\.voz\.vn\/avatars\/)(s|m|l|h|o)(\/\d+\/\d+\.jpg\?\d+)/;
        const match = basePathRegex.exec(originalSrc);

        if (match) {
            const baseUrl = match[1];
            const currentType = match[2];
            const restOfUrl = match[3];
            const orderedTypes = ['s', 'm', 'l', 'h', 'o'];
            let nextTypeIndex = orderedTypes.indexOf(currentType) + 1;

            if (currentType === 's' || currentType === 'm') {
                nextTypeIndex = orderedTypes.indexOf('l');
            }

            let newUrl;
            if (nextTypeIndex < orderedTypes.length) {
                newUrl = baseUrl + orderedTypes[nextTypeIndex] + restOfUrl;
            } else {
                newUrl = `https://web.archive.org/web/2im_/${baseUrl}m/${restOfUrl}`;
                event.target.setAttribute('data-tried-m', 'true');
            }

            event.target.src = newUrl;
        }
    }

    function setupImageErrorHandler() {
        window.addEventListener('error', function(event) {
            if (event.target.tagName === 'IMG') {
                switchToNextAvailableImage(event);
            }
        }, true);
    }

    setupImageErrorHandler();
})();
 
Sửa lần cuối:
Viết bằng HE là ngon nhất đó ngài, hiệu năng tốt, không bị load thừa 404:

  • Name: DenVau
  • Redirect request
  • Regular expression
  • Match: ^https:\/\/statics\.voz\.tech(.*?)$
  • Redirect: https://voz.vn$1

  • Name: DenVau2
  • Redirect request
  • Regular expression
  • Match: ^https:\/\/data\.voz\.vn(?!\/avatars\/)(.*?)$
  • Redirect: https://voz.vn$1
Ủa, lạ ghê, sao em HE của em không chạy mấy rule này ta:amazed:
PS: đã fix:big_smile:
 
Sửa lần cuối:

Thống kê chủ đề

Ngày tạo
Fioren,
Người trả lời cuối
LangBat,
Trả lời
1.081
Lượt xem
174.471
Quay lại
Lên đầu trang