Skip to content

Instantly share code, notes, and snippets.

View warlock0x's full-sized avatar

WARLOCK warlock0x

View GitHub Profile
### Keybase proof
I hereby claim:
* I am warlock0x on github.
* I am warlock0x (https://keybase.io/warlock0x) on keybase.
* I have a public key ASDj24c7rNej26QGLGkaCjJQfiq7UtB0eSfecd6LyH6lBAo
To claim this, I am signing this object:
@warlock0x
warlock0x / google-streetview-cleaner-bookmarklet
Created April 19, 2020 14:26
Remove all elements from Google Street View image
javascript:(function(){ document.getElementById("image-header").remove(); document.getElementById("watermark").remove(); document.getElementById("titlecard").remove(); document.getElementsByClassName("scene-footer-container noprint")[0].remove(); document.getElementsByClassName("widget-minimap")[0].remove(); document.getElementsByClassName("app-viewcard-strip")[0].remove(); })();
@warlock0x
warlock0x / gist:cf40c5a44d9ca900ecffabf3b84bc825
Created February 14, 2020 15:20
Bookmarklet per leggere gli articoli a pagamento di repubblica.it gratuitamente
javascript:(function(){ var newsapp = document.getElementsByTagName("news-app")[0].shadowRoot;var newsarticle = newsapp.querySelectorAll("news-article.iron-selected")[0].shadowRoot;var ampdochost = newsarticle.querySelectorAll("div.amp-doc-host")[0].shadowRoot; var subblock = ampdochost.querySelector("div[subscriptions-section='content-not-granted']");subblock.parentElement.removeChild(subblock);var paywall = ampdochost.querySelectorAll("div.paywall")[0];paywall.setAttribute("style","display: block!important");})();
@warlock0x
warlock0x / gist:3e92bf73cc1370d7cdee0440711e5ab7
Created February 10, 2020 15:56
Bookmarklet che, al click da una pagina all'indirizzo video.repubblica.it, apre una nuova finestra con il video embedded.
javascript:(function(){ var player = document.getElementById('player'); var videourl = player.querySelectorAll(`meta[itemprop="contentUrl"]`); window.open(videourl[0].getAttribute("content")); })();
@warlock0x
warlock0x / gist:a1258b7f09d392c4b29bb7479e9a4306
Last active February 4, 2020 06:52
Hide views on YouTube thumbnails (italian and english). It works with Enhancer for YouTube extension for chromium based browsers.
// Saving the old XMLHttpRequest definition
let oldXHROpen = window.XMLHttpRequest.prototype.open;
// Create a new custom XMLHttpRequest function
window.XMLHttpRequest.prototype.open = function (method, url, async, user, password) {
// Add a listener that triggers every time the page loads
this.addEventListener('load', function () {
// Takes every element that has the class "style-scope ytd-video-meta-block"
var visblocks = document.getElementsByClassName("style-scope ytd-video-meta-block");
var lastelement;
// Cycle the elements
### Keybase proof
I hereby claim:
* I am netrunner2020 on github.
* I am redviper (https://keybase.io/redviper) on keybase.
* I have a public key ASA5U3ImLg1iJOXCDLykAQFStoIRY1waMCG-pLv5lou5IQo
To claim this, I am signing this object: