This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Video keyboard shortcuts | |
// @namespace https://github.com/buzamahmooza | |
// @version 0.5 | |
// @description Adds keyboard shortcuts to HTML5 videos. | |
// Left Click: Toggle Pause/Play | |
// F or dblClk: Toggle Fullscreen | |
// SpaceBar: Toggle Pause/Play | |
// Left/Right: Navigate back/forward | |
// -,[ / =,]: - / + Playback speed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JavaScript:(function(){ | |
if(!/www\.32x8\.com/.test(location.href)){ alert("This script only works on 32x8.com"); return; } | |
stringInput(prompt("Enter the minterms/maxterms in order from top to bottom (0,1,x):", "1 x 1 0 1 0 x 0")); | |
function stringInput(inputStr) { | |
const rows = Array.from(document.querySelectorAll('body > form > table > tbody tr')).slice(2, -1); | |
const terms = inputStr.match(/(1|0|x)/gmi); | |
console.log('terms:', terms); | |
for(let i=0; i<terms.length; i++){ | |
if(i>=terms.length || i>=rows.length) break; | |
var idx=0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(typeof download !== 'function') { | |
alert("The download function was not found on this page, please run the 'downoader' script using tampermonkey."); void(0); | |
} | |
if(/www\.pinterest\./.test(location.href)){ | |
var imgBoxes = document.querySelectorAll('._qk._2h._ql'); | |
console.log('ImgBoxes:', imgBoxes); | |
if(confirm('Download '+imgBoxes.length+' images?')) | |
imgBoxes.forEach(function(imgBox, index, array){ | |
try{ | |
let img = imgBox.querySelector('img[srcset]'); |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var OCRAD=(function(){function createOcradInstance(){var jf;if(!jf)jf=(typeof jf!=='undefined'?jf:null)||{};var jg={};for(var jh in jf){if(jf.hasOwnProperty(jh)){jg[jh]=jf[jh]}}var ji=false;var jj=false;var jk=false;var jl=false;if(jf['ENVIRONMENT']){if(jf['ENVIRONMENT']==='WEB'){ji=true}else if(jf['ENVIRONMENT']==='WORKER'){jj=true}else if(jf['ENVIRONMENT']==='NODE'){jk=true}else if(jf['ENVIRONMENT']==='SHELL'){jl=true}else{throw new Error('The provided Module[\'ENVIRONMENT\'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.');}}else{ji=typeof window==='object';jj=typeof importScripts==='function';jk=typeof process==='object'&&typeof require==='function'&&!ji&&!jj;jl=!ji&&!jk&&!jj}if(jk){if(!jf['print'])jf['print']=console.log;if(!jf['printErr'])jf['printErr']=console.warn;var jm;var jn;jf['read']=function read(a,b){if(!jm)jm=require('fs');if(!jn)jn=require('path');a=jn['normalize'](a);var c=jm['readFileSync'](a);if(!c&&a!=jn['resolve'](a)){a=path.join(__dirname,'..','src',a);c=jm['readFileSync' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name RARBG - Add Magnet Link & thumbnails! | |
// @namespace https://github.com/buzamahmooza | |
// @version 0.5.3 | |
// @description Add a magnet link shortcut and thumbnails of torrents. | |
// @description Also adds a google image saerch link in case you want to see more pics of the torrent. | |
// @author Cisco, forked by Faris Hijazi | |
// @include https://rarbg.to/* | |
// @include http://rarbgmirror.xyz/* | |
// @include https://rarbgunblock.com/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
q=(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text); | |
location.href="https://www.google.com/search?&tbm=isch&q="+((typeof q!=='string'||q.length<1?("site:"+location.hostname):(''+q)).replace(/\s+/g,"+")); | |
console.log('q=', q); | |
void(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getOGZscalarLink(zscalarUrl){ return decodeURIComponent((''+zscalarUrl).substring(46, zscalarUrl.indexOf('&referer'))); } | |
location.href = getOGZscalarLink(location.href); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Faris Handy Webdev JavaScript functions | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description A bunch of useful JavaScript functions | |
// @description This is not a regular script for you to run! Only use this via the @require keyword. | |
// @author Faris Hijazi | |
// @grant unsafeWindow | |
// ==/UserScript== |