Skip to content

Instantly share code, notes, and snippets.

@shawnr
Created March 17, 2018 19:33
Show Gist options
  • Save shawnr/23bd25cdc1873f8cb86f560b5afc3786 to your computer and use it in GitHub Desktop.
Save shawnr/23bd25cdc1873f8cb86f560b5afc3786 to your computer and use it in GitHub Desktop.
Bustin Rep Portal Customizations for Tampermonkey
// ==UserScript==
// @name Expand Rep Portal Container
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Expands Bustin Boards Rep Portal Container
// @author Shawn Rider
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @match https://bustinboards.com/pages/repportal*
// ==/UserScript==
/* jshint ignore:start */
var inline_src = (<><![CDATA[
/* jshint ignore:end */
/* jshint esnext: false */
/* jshint esversion: 6 */
// Your code here...
function expandContainer(){
let wr = document.querySelector('.width-restrict');
wr.style.maxWidth = '3000px';
let rte = document.querySelector('.rte');
rte.style.maxWidth = '3000px';
}
setTimeout(expandContainer, 1500);
/* jshint ignore:start */
]]></>).toString();
var c = Babel.transform(inline_src, { presets: [ "es2015", "es2016" ] });
eval(c.code);
/* jshint ignore:end */
// ==UserScript==
// @name Expand Bustin Rep Portal
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Epands Social Toaster iFrame Grid
// @author Shawn Rider
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @match *://my.socialtoaster.com/*
// ==/UserScript==
/* jshint ignore:start */
var inline_src = (<><![CDATA[
/* jshint ignore:end */
/* jshint esnext: false */
/* jshint esversion: 6 */
// Your code here...
function expandPortal(){
let st = document.querySelector('#st_campaign_body_wrapper');
st.style.maxWidth = '3000px';
let fw = document.querySelectorAll('.st_fixed_width');
for (let el of fw){
el.style.maxWidth = '3000px';
}
let cb = document.querySelector('#st_campaign_blocks');
cb.style.maxWidth = '3000px';
cb.style.width = '100%';
console.log('done');
}
setTimeout(expandPortal, 1000);
/* jshint ignore:start */
]]></>).toString();
var c = Babel.transform(inline_src, { presets: [ "es2015", "es2016" ] });
eval(c.code);
/* jshint ignore:end */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment