Skip to content

Instantly share code, notes, and snippets.

Kumsal Obuz kubarium

Block or report user

Report or block kubarium

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kubarium
kubarium / cloudSettings
Last active Oct 16, 2019
VSCode Settings
View cloudSettings
{"lastUpload":"2019-10-16T17:38:28.589Z","extensionVersion":"v3.4.3"}
@kubarium
kubarium / gutenberg.js
Last active Jul 3, 2019
Adjusts gutenberg.com layout for large monitors.
View gutenberg.js
var styles = {
body: {
"margin-right": "25%",
"margin-left": "25%"
},
p: {
"font-size": "x-large",
"line-height": "1.3em"
},
td: {
View 80.lv.js
document.body.style.backgroundColor="#333333";
container = document.querySelector(".container_left_column .container-item")
container.style.backgroundColor="#333333";
[...container.querySelectorAll("h3")].forEach(h3=>h3.style.color="#bbb")
grid = document.querySelector(".container_for_grid");
grid.style.display="flex";
grid.style.justifyContent="center";
[...grid.children].filter(child=>!child.classList.contains("block_for_inn_content")).forEach(child=>child.style.display="none")
View removeDuplicates.js
Array.prototype.removeDuplicates = function(){
return this.reduce((result,nextItem)=>result.includes(nextItem) ? result : result.concat(nextItem),[]);
}
View book-title-author-name-extractor.js
console.log(
Array.from(document.querySelectorAll(".bookTitle, .authorName"))
.filter((entry) => entry.attributes.itemprop)
.map((entry) => entry.innerText.replace(/\s\(.*?\)\s?/, ""))
.reduce(
(result, entry, index, list) =>
index % 2 == 0 ? result.concat(`${list[index]}, ${list[index + 1]}`) : result,
[]
)
.join("\n")
View safari-books-online-book-interface.js
var course_id = RegExp(/\d+/g).exec(location.href)[0];
var styles = {
pagewrapid: {
width: "1270px",
margin: "0 auto"
},
p: {
"font-size": "16px !important",
"line-height": "1.3rem !important"
You can’t perform that action at this time.