This file contains hidden or 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 has been truncated, but you can view the full file.
This file contains hidden or 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
This file contains hidden or 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 contains hidden or 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 hidden or 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== |
This file contains hidden or 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 hidden or 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 hidden or 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/* |