Обсуждения » Хотелки

Command How to bypass !

§
Создано: 23.06.2017
Изменено: 23.06.2017

Command How to bypass !

Hi how is this possible command bypassed using js?

meta http-equiv="REFRESH" content="8; url=
http://cpmlink.net/sR">

Deleted user 20822
§
Создано: 23.06.2017
Изменено: 23.06.2017

What did you mean? window.stop() can stop refreshing but it cannot prevent the browser from fetching the web page (BTW document.referrer will be leaked).

What did you mean? window.stop() can stop refreshing but it cannot prevent the browser from fetching the web page (BTW document.referrer will be leaked).

I will give more detailed information. I have a debrid site and with this html code I have to wait for 8 seconds on each page and it will direct address. Is there a way to bypass this with a js script?

Thank you for helping !

Deleted user 20822
§
Создано: 25.06.2017

Try this for the intermediate page:

var element = document.querySelector('meta[http-equiv="REFRESH"]');
var url = element.content.match(/url=["']?([^"']+)/i)[1];
location.assign(url);

The userscript should have @run-at document-start in the header.

Ответить

Войдите, чтобы ответить.

长期地址
遇到问题?请前往 GitHub 提 Issues。