nikolay-borzov / user-scripts Goto Github PK
View Code? Open in Web Editor NEWUser scripts for Tampermonkey
License: MIT License
User scripts for Tampermonkey
License: MIT License
Ctrl + S or something like this
Resources:
https://craig.is/killing/mice
http://www.webreference.com/programming/javascript-keyboard-shortcuts/2.html
Take title without tags, remove non-alpha symbols and create search link
rollup.config.js
, CHANGELOG.md
to script subfolderrollup-plugin-postcss
loading
and error
iconsHey. I'm trying to edit the script to get it to work on https://phun.imagetwist.com but no luck.
Modify existing one, make it bigger and add some details
Separate site/author tags from other tags
Super long title for my amazing post about something
becomes
Super long title for my amazing post abo
Max search term length is 61 characters
Nothing changes after click on Apply
Chrome:
Firefox:
Microsoft Edge:
Opera:
Maxthon:
Dolphin:
UC:
See #71 for background
A user-script disabling lazy loading
_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
https://www.typescriptlang.org/
Seems like there are more efficient ways to get full image URL for some image hosts:
Try to adopt some
An attempt to translate basic content into English
Core
Pages:
Firefox + TM
Try GM_download
method
🚨 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.
eslint-config-prettier
configrollup-plugin-eslint-bundle
husky
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
Doesn't make sense because you can still view an image
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.
Because of larger count
@require
@resource
, GM_getResourceURL
and GM_getResourceText
Requested within #71
hi! fastpic.ru add new hotlinking mode and current script not working. please fix it
Firefox 77.0.1 doesn't work at all
Firefox 78.0.1 the control interface appears but the picture does not load
checked for fastpic.ru
Preload similar posts in a separate block
Options:
To disable/configure certain features
It will help to reduce image loading time feeling
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.