Fixed a regex bug for all services #76
This commit is contained in:
parent
253d0622b2
commit
96a04b66f7
@ -1,7 +1,7 @@
|
|||||||
window.browser = window.browser || window.chrome;
|
window.browser = window.browser || window.chrome;
|
||||||
import commonHelper from './common.js'
|
import commonHelper from './common.js'
|
||||||
|
|
||||||
const targets = /https?:\/\/(((www|maps)\.)?(google\.).*(\/maps)|maps\.(google\.).*)/;
|
const targets = /^https?:\/\/(((www|maps)\.)?(google\.).*(\/maps)|maps\.(google\.).*)/;
|
||||||
let redirects = {
|
let redirects = {
|
||||||
"normal": [
|
"normal": [
|
||||||
"https://openstreetmap.org"
|
"https://openstreetmap.org"
|
||||||
|
@ -3,8 +3,8 @@ window.browser = window.browser || window.chrome;
|
|||||||
import commonHelper from './common.js'
|
import commonHelper from './common.js'
|
||||||
|
|
||||||
const targets = [
|
const targets = [
|
||||||
/https?:\/\/(www\.|maps\.|search\.|)google\.com(\...|)(\/search\?..*|\/$)/,
|
/^https?:\/\/(www\.|maps\.|search\.|)google\.com(\...|)(\/search\?..*|\/$)/,
|
||||||
// /https?:\/\/yandex\.com(\...|)(\/search\/..*|\/$)/,
|
// /^https?:\/\/yandex\.com(\...|)(\/search\/..*|\/$)/,
|
||||||
];
|
];
|
||||||
let redirects = {
|
let redirects = {
|
||||||
"searx": {
|
"searx": {
|
||||||
|
@ -3,12 +3,12 @@ window.browser = window.browser || window.chrome;
|
|||||||
import commonHelper from './common.js'
|
import commonHelper from './common.js'
|
||||||
|
|
||||||
const targets = [
|
const targets = [
|
||||||
/https?:\/\/twitter\.com/,
|
/^https?:\/\/twitter\.com/,
|
||||||
/https?:\/\/www\.twitter\.com/,
|
/^https?:\/\/www\.twitter\.com/,
|
||||||
/https?:\/\/mobile\.twitter\.com/,
|
/^https?:\/\/mobile\.twitter\.com/,
|
||||||
/https?:\/\/pbs\.twimg\.com/,
|
/^https?:\/\/pbs\.twimg\.com/,
|
||||||
/https?:\/\/video\.twimg\.com/,
|
/^https?:\/\/video\.twimg\.com/,
|
||||||
/https?:\/\/platform\.twitter\.com\/embed/
|
/^https?:\/\/platform\.twitter\.com\/embed/
|
||||||
];
|
];
|
||||||
|
|
||||||
let redirects = {
|
let redirects = {
|
||||||
|
@ -5,16 +5,16 @@ import commonHelper from '../common.js'
|
|||||||
window.browser = window.browser || window.chrome;
|
window.browser = window.browser || window.chrome;
|
||||||
|
|
||||||
const targets = [
|
const targets = [
|
||||||
/https?:\/\/(www\.|music\.|m\.|)youtube\.com(\/.*|$)/,
|
/^https?:\/\/(www\.|music\.|m\.|)youtube\.com(\/.*|$)/,
|
||||||
|
|
||||||
/https?:\/\/img\.youtube\.com\/vi\/.*\/..*/, // https://stackoverflow.com/questions/2068344/how-do-i-get-a-youtube-video-thumbnail-from-the-youtube-api
|
/^https?:\/\/img\.youtube\.com\/vi\/.*\/..*/, // https://stackoverflow.com/questions/2068344/how-do-i-get-a-youtube-video-thumbnail-from-the-youtube-api
|
||||||
/https?:\/\/(i|s)\.ytimg\.com\/vi\/.*\/..*/,
|
/^https?:\/\/(i|s)\.ytimg\.com\/vi\/.*\/..*/,
|
||||||
|
|
||||||
/https?:\/\/(www\.|music\.|)youtube\.com\/watch\?v\=..*/,
|
/^https?:\/\/(www\.|music\.|)youtube\.com\/watch\?v\=..*/,
|
||||||
|
|
||||||
/https?:\/\/youtu\.be\/..*/,
|
/^https?:\/\/youtu\.be\/..*/,
|
||||||
|
|
||||||
/https?:\/\/(www\.|)(youtube|youtube-nocookie)\.com\/embed\/..*/,
|
/^https?:\/\/(www\.|)(youtube|youtube-nocookie)\.com\/embed\/..*/,
|
||||||
];
|
];
|
||||||
let redirects = {
|
let redirects = {
|
||||||
"invidious": {
|
"invidious": {
|
||||||
|
@ -5,7 +5,7 @@ import commonHelper from './common.js'
|
|||||||
window.browser = window.browser || window.chrome;
|
window.browser = window.browser || window.chrome;
|
||||||
|
|
||||||
const targets = [
|
const targets = [
|
||||||
/https?:\/\/music\.youtube\.com(\/.*|$)/,
|
/^https?:\/\/music\.youtube\.com(\/.*|$)/,
|
||||||
];
|
];
|
||||||
let redirects = {
|
let redirects = {
|
||||||
"beatbump": {
|
"beatbump": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user