Skip to content

Commit

Permalink
Add support for scrin.org, v. 0.6.23 - 2017-12-19
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Dec 19, 2017
1 parent 965517b commit 4b6c7fa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Direct_Images/direct_images.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name Direct Images
// @version 0.6.22.1 - 2017-09-01
// @version 0.6.23 - 2017-12-19
// @description Redirect from preview pages to images directly
// @author Infocatcher
// @namespace dev/null
Expand Down Expand Up @@ -83,6 +83,7 @@
// @include http://imagestun.com/hosting/?v=*
// @include http://picua.org/?v=*
// @match *://*.giphy.com/media/*
// @include http://scrin.org/?v=*

// Get image by src:
// @include http://*imagepix.org/image/*.html
Expand Down Expand Up @@ -702,6 +703,11 @@ switch(host) {
.replace(/^https?:\/\/\w+\.giphy\.com\/media\//, "https://i.giphy.com/")
.replace(/\/\w+(\.\w+)$/, "$1");
break;
case "scrin.org":
_src = loc.replace(/\/\?v=(\w+\.\w+)/, function(s, name) {
return "/i/" + name.replace(/_/g, "/");
});
break;

// Get image by src:
case "imagepix.org":
Expand Down

0 comments on commit 4b6c7fa

Please sign in to comment.