This website (www.samy.pl) uses some technique so that no one can check the code( Ctrl+ Shift+ I) or view the source ( Ctrl+ U). It may detect that you have opened a console or inspector, the code automatically changes.
How is this possible?
You can always save the site. In chrome, open the menu → more tools → Save page as ..
You should be able to run the html file in chrome and use Dev Tools without blocking it.
console "" API, .
console
, , :
-, , Google Chrome DevTools , /. "" :
chrome.devtools.inspectedWindow.eval
document.body.innerHTML
setInterval
console.clear()
console.log()
EventListeners Chrome DevTools, " ".
, , , , :
false
,
hahaha, , samy!
, , ( , )
1. , " ! № 7".
2. , № 2:
view-source:https://samy.pl
:
/* No source for you! Easter egg #2 *// AFTER SOME LONG WHITE SPACES HERE /.source.replace(/.{7}/g,function(w){document.write(String.fromCharCode(parseInt(w.replace(/ /g,'0').replace(/ /g,'1'),2)))});
( js), 1 0 char , , : D
https://de.wikipedia.org/wiki/Whitespace_(Programmiersprache)
js, , .
. , normaly F12 javascript.
!
! .1. Firefox ( Chrome ).2. URL javascript:alert(document.documentElement.outerHTML);3. Enter.4. Voil & agrave;!
javascript:alert(document.documentElement.outerHTML);
index.html -, <iframe src='https://samy.pl/'>. , devtools. iframe.
index.html
<iframe src='https://samy.pl/'>
Update: view-source: http://samy.pl, , . , Chrome.
, . .
, .
Chrome devtools . Chrome ( ).
. F12, .
Source: https://habr.com/ru/post/1016512/More articles:Excel VBA Map Filtered XML To Table - xmlHow to resize / dev / shm in an Engine Flexible app - google-app-engineHow to increase size / dev / shm in docker container - dockerChrome user agent border radius overrides my style for choice - cssДовольно URL-адрес приложения MEAN-стека в nginx - url-rewritingHow to clear javascript console programmatically? - javascriptДобавление Redux в существующее приложение React - reactjsКак Docker запускает ядро Linux под хостом macOS? - linuxWho is responsible for the general status of futures and promises - c ++Отсутствие продуктов во всех категориях и родительских категориях содержит ключевое слово - sqlAll Articles