Fixed m.imgur.com previews
This commit is contained in:
		
							parent
							
								
									00fd5fc822
								
							
						
					
					
						commit
						f264add394
					
				@ -104,10 +104,10 @@ export class ImageUrlMutator {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.add(
 | 
					        this.add(
 | 
				
			||||||
            /^https?:\/\/imgur.com\/gallery\/([a-zA-Z0-9]+)/,
 | 
					            /^https?:\/\/((m|www).)?imgur.com\/gallery\/([a-zA-Z0-9]+)/,
 | 
				
			||||||
            async(url: string, match: RegExpMatchArray): Promise<string> => {
 | 
					            async(url: string, match: RegExpMatchArray): Promise<string> => {
 | 
				
			||||||
                // Imgur Gallery
 | 
					                // Imgur Gallery
 | 
				
			||||||
                const galleryId = match[1];
 | 
					                const galleryId = match[3];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                try {
 | 
					                try {
 | 
				
			||||||
                    const result = await Axios.get(
 | 
					                    const result = await Axios.get(
 | 
				
			||||||
@ -140,10 +140,10 @@ export class ImageUrlMutator {
 | 
				
			|||||||
        );
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        this.add(
 | 
					        this.add(
 | 
				
			||||||
            /^https?:\/\/imgur.com\/a\/([a-zA-Z0-9]+)/,
 | 
					            /^https?:\/\/((m|www).)?imgur.com\/a\/([a-zA-Z0-9]+)/,
 | 
				
			||||||
            async(url: string, match: RegExpMatchArray): Promise<string> => {
 | 
					            async(url: string, match: RegExpMatchArray): Promise<string> => {
 | 
				
			||||||
                // Imgur Album
 | 
					                // Imgur Album
 | 
				
			||||||
                const albumId = match[1];
 | 
					                const albumId = match[3];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                try {
 | 
					                try {
 | 
				
			||||||
                    const result = await Axios.get(
 | 
					                    const result = await Axios.get(
 | 
				
			||||||
@ -177,10 +177,10 @@ export class ImageUrlMutator {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        // must be AFTER gallery & album test
 | 
					        // must be AFTER gallery & album test
 | 
				
			||||||
        this.add(
 | 
					        this.add(
 | 
				
			||||||
            /^https?:\/\/imgur.com\/([a-zA-Z0-9]+)/,
 | 
					            /^https?:\/\/((m|www).)?imgur.com\/([a-zA-Z0-9]+)/,
 | 
				
			||||||
            async(url: string, match: RegExpMatchArray): Promise<string> => {
 | 
					            async(url: string, match: RegExpMatchArray): Promise<string> => {
 | 
				
			||||||
                // Single Imgur Image
 | 
					                // Single Imgur Image
 | 
				
			||||||
                const imageId = match[1];
 | 
					                const imageId = match[3];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                try {
 | 
					                try {
 | 
				
			||||||
                    const result = await Axios.get(
 | 
					                    const result = await Axios.get(
 | 
				
			||||||
 | 
				
			|||||||
@ -19,6 +19,14 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    [url=https://imgur.com/a/nMafj]Imgur album[/url]
 | 
					    [url=https://imgur.com/a/nMafj]Imgur album[/url]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [url=https://m.imgur.com/LmEyXEM]Mobile Imgur[/url]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [url=https://m.imgur.com/gallery/ILsb94I]Mobile Imgur gallery[/url]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [url=https://m.imgur.com/CIKv6sA]Mobile Imgur image[/url]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    [url=https://m.imgur.com/a/nMafj]Mobile Imgur album[/url]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    [url=http://i.imgur.com/txEREOg.gifv]Imgur video[/url]
 | 
					    [url=http://i.imgur.com/txEREOg.gifv]Imgur video[/url]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    [url=https://www.pornhub.com/view_video.php?viewkey=ph5b2c03dc1e23b]Pornhub video[/url]
 | 
					    [url=https://www.pornhub.com/view_video.php?viewkey=ph5b2c03dc1e23b]Pornhub video[/url]
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user