Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh bijij

  • Brisbane, Queensland, Australia
View GitHub Profile
@bijij
bijij / viewimage.user.js
Last active Jan 5, 2021
Userscript version of the View Image chrome extension
View viewimage.user.js
// ==UserScript==
// @name View Image
// @namespace https://github.com/bijij/ViewImage
// @version 3.3.0
// @description This userscript re-implements the "View Image" and "Search by image" buttons into google images.
// @author Joshua B
// @run-at document-end
// @include http*://*.google.tld/search*tbm=isch*
// @include http*://*.google.tld/imgres*
// @updateURL https://gist.githubusercontent.com/bijij/58cc8cfc859331e4cf80210528a7b255/raw/viewimage.user.js
@bijij
bijij / 201 Practice Exam.cs
Last active Nov 8, 2016
Various Methods for the CAB201 (Sem 2 16) Practice exam
View 201 Practice Exam.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
// Q1 A
public static bool IsLeapYear(int year) {
return year % 4 == 0 && (!(year % 100 == 0) || (year % 400 == 0));
}
@bijij
bijij / ripFrenchysChessFrom.js
Last active Nov 2, 2016
Google Form Auto-Completer to destroy Frenchy
View ripFrenchysChessFrom.js
// REK FRENHCY'S FORM SCRIPT
// BIGGAGE 2K16
// Edit the variables between the NO TOUCHY SECTIONS
// Function to select form components via Xpath
function getElementByXpath(path) {
return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
}
// ----- NO TOUCHY ABOVE ----- //