Code Monkey home page Code Monkey logo

user-scripts's People

Contributors

dependabot[bot] avatar greenkeeper[bot] avatar nikolay-borzov avatar shikiyoku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

user-scripts's Issues

Не работает на Рутрекере

Привет. Скрипт уже очень давно не показывает изображения на Рутрекере, вместо картинки такое

2023-04-14_223756

Хост fastpic

Find similar posts

Take title without tags, remove non-alpha symbols and create search link

Refactoring

  • Folders structure
    • Move rollup.config.js, CHANGELOG.md to script subfolder
  • CSS
    • BEM (kind of)
    • rollup-plugin-postcss
  • Image view
    • Handle broken images
    • Add styles for image links
    • Replace loading and error icons
  • Build process
    • Use Rollup JavaScript API

[Tags] Add more icons

  • 240p
  • 360p
  • 480p
  • 540p
  • 576p
  • 640p
  • 720p
  • 1080p
  • 1080i
  • 1440p
  • 2160p
  • eng
  • jap
  • rus
  • chi
  • spa
  • por
  • ger
  • fr
  • ko
  • cen
  • uncen
  • ptcen
  • inProgress
  • Suggestions?

Test compatibility with other user script engines

image-viewer

Chrome

  • Tampermonkey
  • Violentmonkey

Firefox

  • Greasemonkey
  • Tampermonkey
  • Violentmonkey

Microsoft Edge

  • Tampermonkey

Opera

  • Tampermonkey
  • Violentmonkey

Maxthon

  • Violentmonkey

Dolphin

  • Tampermonkey

UC

  • Tampermonkey

Qupzilla

  • Built-in

AdGuard

  • Built-in

Notes

Chrome:

Firefox:

Microsoft Edge:

Opera:

Maxthon:

Dolphin:

UC:

Support lazy loading images

See #71 for background

A user-script disabling lazy loading

  • List of possible lazy load attributes:
_src
data-actualsrc
data-cover
data-defer-src
data-imageurl
data-ks-lazyload
data-ks-lazyload-custom
data-lazy
data-lazy-load-src
data-lazy-src
data-lazyload
data-lazyload-src
data-original
data-placeholder
data-src
data-thumb
data-thumb_url
data-url
file
imgsrc
load-src
origin-src
original
real_src
src2
zoomfile

Pornolab English

An attempt to translate basic content into English

Core

  • Engine

Pages:

  • Topic
  • Home
  • Torrent Search

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

some fix and request lazy load image support

some fix

id: 'imagevenue,',

const fastpic = {
id: 'fastpic',
name: 'FastPic',
linkRegExp: /fastpic.(?:ru|org)/view/,
imageURLRegExp: /src="(?http[^"]+)" class="image img-fluid"/,
getURL: getURLFromPage,
}

const URL_PARTS_REGEXP = /i(\d+).+.(ru|org)/big(/\d+/\d+/).+/([^/]+)$/
to
const URL_PARTS_REGEXP = /i(\d+).+.(ru|org)/big(/\d+/\d+/).+/([^\/]+)$/

ImageTwist some link include jpeg.html link extension length 4 image extension length 3
this changed xxx.jpeg to xxxjpeg

const imagetwist = {
id: 'imagetwist',
name: 'ImageTwist',
linkRegExp: /imagetwist.com/,
viewMode: 'origin-download',

async getURL(link) {
const imageName = link.url.split('/').pop()?.replace('.html', '')
const extension = imageName?.split('.').pop() ?? ''
const imageUrl = link.thumbnailURL
.replace('/th/', '/i/')
.slice(0, -extension.length)

to

const imageName = link.split('/').pop()?.replace('.html', '')
const extension = imageName?.split('.').pop() ?? ''
const srcextension = src?.split('.').pop() ?? ''
//console.log(imageName, extension)
const imageUrl = src
.replace('/th/', '/i/')
.slice(0, -srcextension.length)

lazy load image.. src data:image.......

i check.. imagesWithLinks

thumbnailUrl: img.src ?? img.title

get img.src data:image....

how can change this script showInViewer to https://github.com/fengyuanchen/viewerjs

please a not only img gallery support

Improve link detection logic

Currently, image links are selected by query selector combining all supported hosts selectors. While this solution works for most cases it adds an additional step to the image extracting logic - detecting image host. Perhaps detecting image host during link detection would improve overall logic.

Refactoring time!

  • Move user scripts to sub folders
  • Extract common functions to separate files and add though @require
  • Move CSS to separate files and load though @resource, GM_getResourceURL and GM_getResourceText
  • Init features on different document load state (some might be initialized on document start)
  • Bundle all modules and CSS into one file

request loadAsBlob add time limit (sometimes imagetwist.com wait return response blob without time limit)

i test get loadAsBlob imagetwist.com image

sometimes imagetwist.com return some links blob
some links wait response without time limit

I try

try {
                const extractor = urlExtractor.getExtractorByHost(imageHost)
                //console.log(extractor,imageURL, extractor.viewMode)

                if (extractor.viewMode === 'origin-download') {
                    imageURL = await image.CheckOnline(imageURL)
                    //imageURL = await image.loadAsBlob(imageURL)
                }
            } catch {
                console.log(imageURL)
                image.markAsBroken(link)
                link.setAttribute('target', '_blank')
            }
CheckOnline(url) {
            return new Promise((resolve, reject) => {
                let timer = setTimeout(() => resolve(url), 5000);
                GM_xmlhttpRequest({
                    method: "GET",
                    url: url,
                    headers: { referer: url, origin: url },
                    responseType: 'blob',
                    onload: function(resp) {
                        resolve(window.URL.createObjectURL(resp.response))
                    },
                    onerror: function(error) {
                        reject(error);
                    }
                })
            })
        },

after 2hour

i test

imagetwist.com return all links blob

request loadAsBlob add time limit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.