Skip to content

Instantly share code, notes, and snippets.

@Rohaq
Rohaq / WhiterForestPortraitMode.css
Last active September 2, 2023 21:37
WhiteForest Portrait Mode Enabler
/* ==UserStyle==
@name TheSerfs.tv Portrait Mode Enabler
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Adds portait mode layout support to theserfs.tv
@author Rohaq
==/UserStyle== */
@-moz-document domain("theserfs.tv") {
@media (orientation: portrait) {
body#bigscreen #bigscreen-layout.chat-right {
@Rohaq
Rohaq / gmailAutoarchive.js
Last active February 12, 2021 11:30 — forked from anonymous/gmailAutoarchive.js
Autoarchive Gmail script for Google Scripts
function gmailAutoarchive() {
let labelRules = {
"Autoarchive": [
{ "days": 60, "actions": ["archive", "markread"] }
],
"Autodelete": [
{ "days": 60, "actions": ["delete"] }
],
"Label 1": [
{ "days": 30, "actions": ["archive", "markread"] }
SALR.prototype.notifyUserAccessResult = function(result) {
this.Platinum = result.Platinum;
this.Archives = result.Archives;
this.NoAds = result.NoAds;
alert(this.Platinum);
};
SALR.prototype.getUserAccess = function() {
var Platinum = '';
SALR.prototype.notifyUserAccessResult = function(result) {
return result;
};
SALR.prototype.getUserAccess = function() {
var Platinum = '';
var Archives = '';
var NoAds = '';
var that = this;
jQuery.get('/member.php?action=accountfeatures', function(data){
// Copyright (c) 2009, Scott Ferguson
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
SALR.prototype.getUserAccess = function() {
var Platinum = '';
var Archives = '';
var NoAds = '';
jQuery.get('/member.php?action=accountfeatures', function(data){
var PlatRegex = new RegExp('<dt class="(.+?)">Platinum Upgrade</dt>',["i"]);
var PlatMatches = PlatRegex.exec(data);
if ( PlatMatches != null ) {
// alert("Platinum: " + PlatMatches[1]);
Platinum = PlatMatches[1];
SALR.prototype.getUserFeatures = function() {
var Platinum = '';
var Archives = '';
var NoAds = '';
jQuery.get('/member.php?action=accountfeatures', function(data){
var PlatRegex = new RegExp('<dt class="(.+?)">Platinum Upgrade</dt>',["i"]);
var PlatMatches = PlatRegex.exec(data);
if ( PlatMatches != null ) {
// alert("Platinum: " + PlatMatches[1]);
Platinum = PlatMatches[1];