Auto code viewer for Github (for mobile users)

Auto clicks "View code" on Github repositories. Useful for mobile users.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name        Auto code viewer for Github (for mobile users)
// @namespace   https://myanimelist.net/profile/kyoyatempest
// @match       https://github.com/*/*
// @version     1.1
// @author      kyoyacchi
// @description Auto clicks "View code" on Github repositories. Useful for mobile users.
// @license     gpl-3.0
// @icon        https://t3.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url=http://github.com&size=64
// ==/UserScript==
window.onload = function () {
let code = document.querySelector(".py-2.px-3.width-full.d-block.btn-link.js-details-target")

if (code) {
  code.click()
} else return

}