Skip to content

Instantly share code, notes, and snippets.

View RheingoldRiver's full-sized avatar

River RheingoldRiver

View GitHub Profile
// ==UserScript==
// @name Goodreads Title & Author copy buttons
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Adds one-click buttons to copy title & author(s) on Goodreads book pages
// @author RheingoldRiver
// @match https://www.goodreads.com/*
// @grant none
// ==/UserScript==
.smwb-title,
div.smwfact {
background-color:var(--table-background);
}
.smw-table,
.smwb-ipropvalue .smwb-prophead,
.smwb-center,
.smwb-propvalue .smwb-prophead {
background-color:var(--zebra-color-2);
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="mockup.css">
</head>
<body>
<div class="sidebar">
<div class="sidebar-close-button">
</div>
<div class="sidebar-top-buttons-container">
@RheingoldRiver
RheingoldRiver / MAGE do stuff mockup.css
Created December 16, 2020 21:51
MAGE do stuff mockup.css
.main-section {
display: flex;
flex-direction: column;
width: 1050px;
}
.main-section-header {
background-color: #B1A9A9;
}
/*
source: https://danielpost.com/articles/making-hugos-footnotes-accessible
*/
@keyframes highlight {
0% {
opacity: 1;
}
from mwclient import Site
limit = -1
site = Site('https://lol.gamepedia.com', path="/") # Set wiki
site.login('RheingoldRiver@BotPasswordName', 'smldrgsrthmldyhj')
revisions = 2 # numver of revisions to roll back
comment = None # require the comment on the edit you're rolling back to be this
print(comment)
comment = "fixing toggle"
<DT><H3>Search Keywords - Gamepedia Global</H3>
<DL><p>
<DT><A href="javascript:%20%20var%20s='%s';%20url='https://%s.gamepedia.com/index.php?search=%s';%20tt=[''];%20j=0;%20qc=0;%20chunks=url.split('%s');%20for(i=0;%20i<s.length;%20i++){%20if(s.charAt(i)=='%22')qc=qc^1;%20if%20(s.charAt(i)=='%20'&&(qc||j>=chunks.length-2))%20{%20tt[j]+=('^');%20}%20else%20if%20(s.charAt(i)=='%20'){%20j++;%20tt.push('%20');%20}%20else%20{%20tt[j]+=(s.charAt(i));%20}%20}%20t%20=%20tt.join('');%20args=t.split(/\s/);%20nurl='';%20for(i=0;%20i<chunks.length;%20i++){%20nurl+=chunks[i];%20%20if(args[i]!=undefined)%20{%20args[i]=args[i].replace(/\^/g,'%20');%20nurl+=args[i];%20}%20}%20location.replace(nurl,'<%20BR>');" SHORTCUTURL="gp">gp</A>
<DT><A href="javascript:%20%20var%20s='%s';%20url='https://%s.gamepedia.com/Special:Contributions/%s';%20tt=[''];%20j=0;%20qc=0;%20chunks=url.split('%s');%20for(i=0;%20i<s.length;%20i++){%20if(s.charAt(i)=='%22')qc=qc^1;%20if%20(s.charAt(i)=='%20'&&(qc||j>=chunks.length-